Skip to content

Commit b48f4d3

Browse files
committed
Run pnpm proptypes
1 parent d4f4bb4 commit b48f4d3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/mui-joy/src/Option/Option.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ InnerOption.propTypes /* remove-proptypes */ = {
141141
* A text representation of the option's content.
142142
* Used for keyboard text navigation matching.
143143
*/
144-
label: PropTypes.element,
144+
label: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),
145145
/**
146146
* The props used for each slot inside.
147147
* @default {}
@@ -232,7 +232,7 @@ StableOption.propTypes /* remove-proptypes */ = {
232232
* A text representation of the option's content.
233233
* Used for keyboard text navigation matching.
234234
*/
235-
label: PropTypes.element,
235+
label: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),
236236
/**
237237
* The system prop that allows defining system overrides as well as additional CSS styles.
238238
*/

packages/mui-material/src/Tab/Tab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ Tab.propTypes /* remove-proptypes */ = {
324324
/**
325325
* The icon to display.
326326
*/
327-
icon: PropTypes.element,
327+
icon: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),
328328
/**
329329
* The position of the icon relative to the label.
330330
* @default 'top'

0 commit comments

Comments
 (0)