Skip to content

Commit

Permalink
feat: Add withStyles and useTheme helpers from MUI
Browse files Browse the repository at this point in the history
to avoid importing MUI just for them
  • Loading branch information
JF-Cozy committed Jul 25, 2022
1 parent 49604a0 commit 578db69
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions react/helpers/useTheme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { useTheme } from '@material-ui/core'
export default useTheme
2 changes: 2 additions & 0 deletions react/helpers/withStyles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { withStyles } from '@material-ui/core/styles'
export default withStyles
2 changes: 2 additions & 0 deletions react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export { default as AccordionDetails } from './MuiCozyTheme/AccordionDetails'
export { default as Toggle } from './Toggle'
export { default as withBreakpoints } from './helpers/withBreakpoints'
export { default as makeStyles } from './helpers/makeStyles'
export { default as withStyles } from './helpers/withStyles'
export { default as useTheme } from './helpers/useTheme'
export { default as useBreakpoints } from './hooks/useBreakpoints'
export { default as useBrowserOffline } from './hooks/useBrowserOffline'
export { Media, Img, Bd } from './Media'
Expand Down

0 comments on commit 578db69

Please sign in to comment.