Skip to content

Commit

Permalink
Fixed read-only problems with padding.
Browse files Browse the repository at this point in the history
  • Loading branch information
aseem191 committed Aug 5, 2018
1 parent 0ddd0df commit e03f264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/material-ui/src/TableCell/TableCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function TableCell(props, context) {
...other
} = props;

padding = padding === 'default' ? context.padding : padding;
Padding = padding === 'default' ? context.padding : padding;

const { table } = context;
let Component;
Expand All @@ -103,7 +103,7 @@ function TableCell(props, context) {
[classes.body]: variant ? variant === 'body' : table && table.body,
[classes.footer]: variant ? variant === 'footer' : table && table.footer,
[classes.numeric]: numeric,
[classes[`padding${capitalize(padding)}`]]: padding !== 'default',
[classes[`padding${capitalize(Padding)}`]]: Padding !== 'default',
},
classNameProp,
);
Expand Down

0 comments on commit e03f264

Please sign in to comment.