Skip to content

Commit da26ee3

Browse files
committed
fix: type Grid size proptype to accep grow and auto values (mui#323)
1 parent 65364ca commit da26ee3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/pigment-css-react/src/Grid.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ process.env.NODE_ENV !== 'production' &&
300300
*/
301301
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
302302
PropTypes.arrayOf(PropTypes.number),
303+
PropTypes.oneOf(['grow', 'auto']),
303304
PropTypes.number,
304305
PropTypes.object,
305306
]),

packages/pigment-css-react/tests/Grid/fixtures/Grid.output.js

+1
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ process.env.NODE_ENV !== 'production' &&
394394
*/
395395
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
396396
PropTypes.arrayOf(PropTypes.number),
397+
PropTypes.oneOf(['grow', 'auto']),
397398
PropTypes.number,
398399
PropTypes.object,
399400
]),

0 commit comments

Comments
 (0)