mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Fix/Update react-with-styles & aphrodite example (#3224)
* chore(package): Update dependencies for aphrodite and react-with-styles * refactor: Update example to current version of react-with-styles
This commit is contained in:
parent
190853b4ff
commit
6089377c6b
|
@ -7,12 +7,12 @@
|
||||||
"start": "next start"
|
"start": "next start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"aphrodite": "^1.2.1",
|
"aphrodite": "^1.2.5",
|
||||||
"next": "latest",
|
"next": "latest",
|
||||||
"react": "^16.0.0",
|
"react": "^16.0.0",
|
||||||
"react-dom": "^16.0.0",
|
"react-dom": "^16.0.0",
|
||||||
"react-with-styles": "^1.4.0",
|
"react-with-styles": "^2.2.0",
|
||||||
"react-with-styles-interface-aphrodite": "^1.2.0"
|
"react-with-styles-interface-aphrodite": "^3.1.1"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet'
|
import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet'
|
||||||
import aphroditeInterface from 'react-with-styles-interface-aphrodite'
|
import aphroditeInterface from 'react-with-styles-interface-aphrodite'
|
||||||
import { css, withStyles, ThemeProvider } from 'react-with-styles'
|
import { css, withStyles } from 'react-with-styles'
|
||||||
import MyDefaultTheme from './defaultTheme'
|
import MyDefaultTheme from './defaultTheme'
|
||||||
|
|
||||||
ThemedStyleSheet.registerDefaultTheme(MyDefaultTheme)
|
ThemedStyleSheet.registerTheme(MyDefaultTheme)
|
||||||
ThemedStyleSheet.registerInterface(aphroditeInterface)
|
ThemedStyleSheet.registerInterface(aphroditeInterface)
|
||||||
|
|
||||||
export { css, withStyles, ThemeProvider, ThemedStyleSheet }
|
export { css, withStyles, ThemedStyleSheet }
|
||||||
|
|
Loading…
Reference in a new issue