diff --git a/packages/ra-ui-materialui/src/detail/Edit.js b/packages/ra-ui-materialui/src/detail/Edit.js index a9d52fdeb3b..701cb923ff3 100644 --- a/packages/ra-ui-materialui/src/detail/Edit.js +++ b/packages/ra-ui-materialui/src/detail/Edit.js @@ -182,7 +182,7 @@ EditView.defaultProps = { component: Card, }; -export const useStyles = makeStyles( +const useStyles = makeStyles( { root: {}, main: { diff --git a/packages/ra-ui-materialui/src/detail/Show.js b/packages/ra-ui-materialui/src/detail/Show.js index 46bf784ca47..9ed61322a70 100644 --- a/packages/ra-ui-materialui/src/detail/Show.js +++ b/packages/ra-ui-materialui/src/detail/Show.js @@ -161,7 +161,7 @@ ShowView.defaultProps = { component: Card, }; -export const useStyles = makeStyles( +const useStyles = makeStyles( { root: {}, main: { diff --git a/packages/ra-ui-materialui/src/list/List.js b/packages/ra-ui-materialui/src/list/List.js index f144bb262bc..781ccdc8360 100644 --- a/packages/ra-ui-materialui/src/list/List.js +++ b/packages/ra-ui-materialui/src/list/List.js @@ -220,7 +220,7 @@ ListView.defaultProps = { pagination: , }; -export const useStyles = makeStyles( +const useStyles = makeStyles( theme => ({ root: {}, main: {