Skip to content

Commit

Permalink
Updates to remove warnings for mui v4 users (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
patorjk authored and gabrielliwerant committed Aug 29, 2019
1 parent 6396aa1 commit a5f30b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions src/components/TableToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,16 @@ class TableToolbar extends React.Component {
<span>
<ReactToPrint
trigger={() => (
<Tooltip title={print}>
<IconButton data-testid={print + '-iconButton'} aria-label={print} classes={{ root: classes.icon }}>
<PrintIcon />
</IconButton>
</Tooltip>
<span>
<Tooltip title={print}>
<IconButton
data-testid={print + '-iconButton'}
aria-label={print}
classes={{ root: classes.icon }}>
<PrintIcon />
</IconButton>
</Tooltip>
</span>
)}
content={() => this.props.tableRef()}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/TableToolbarSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const defaultToolbarSelectStyles = theme => ({
zIndex: 120,
justifyContent: 'space-between',
alignItems: 'center',
paddingTop: theme.spacing.unit,
paddingBottom: theme.spacing.unit,
paddingTop: typeof theme.spacing === 'function' ? theme.spacing(1) : theme.spacing.unit,
paddingBottom: typeof theme.spacing === 'function' ? theme.spacing(1) : theme.spacing.unit,
},
title: {
paddingLeft: '26px',
Expand Down

0 comments on commit a5f30b6

Please sign in to comment.