Skip to content

Commit

Permalink
Merge pull request #4293 from WiXSL/patch-add-name-empty-makestyle
Browse files Browse the repository at this point in the history
Added name parameter to Empty's makeStyles component.
  • Loading branch information
fzaninotto committed Jan 16, 2020
2 parents da78414 + 12610e7 commit f10c1a9
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions packages/ra-ui-materialui/src/list/Empty.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,24 @@ import { useTranslate } from 'ra-core';
import { CreateButton } from '../button';
import inflection from 'inflection';

const useStyles = makeStyles({
message: {
textAlign: 'center',
opacity: 0.5,
margin: '0 1em',
const useStyles = makeStyles(
{
message: {
textAlign: 'center',
opacity: 0.5,
margin: '0 1em',
},
icon: {
width: '9em',
height: '9em',
},
toolbar: {
textAlign: 'center',
marginTop: '2em',
},
},
icon: {
width: '9em',
height: '9em',
},
toolbar: {
textAlign: 'center',
marginTop: '2em',
},
});
{ name: 'RaEmpty' }
);

const Empty = ({ resource, basePath }) => {
const classes = useStyles();
Expand Down

0 comments on commit f10c1a9

Please sign in to comment.