Skip to content

Commit

Permalink
fix: shouldForwardProp to fix React warning
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Wizard committed Mar 30, 2023
1 parent fc53017 commit 7ca4ce0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -4,7 +4,7 @@ import getItemSizes from '../../grid-list-components/item-sizes';
import classes from '../helpers/classes';

const ItemGrid = styled(Grid, {
shouldForwardProp: (prop) => !['dataLayout', 'layoutOrder', 'itemPadding', 'checkboxes'].includes(prop),
shouldForwardProp: (prop) => !['dataLayout', 'layoutOrder', 'itemPadding', 'cellPaddingRight'].includes(prop),
})(({ dataLayout, layoutOrder, itemPadding, cellPaddingRight }) => ({
[`&.${classes.fieldRoot}`]: {
...getItemSizes({ dataLayout, layoutOrder, itemPadding }),
Expand Down

0 comments on commit 7ca4ce0

Please sign in to comment.