1
0
Fork 0
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:
Thomas Kolar 2017-11-01 19:53:45 +01:00 committed by Tim Neutkens
parent 190853b4ff
commit 6089377c6b
2 changed files with 6 additions and 6 deletions

View file

@ -7,12 +7,12 @@
"start": "next start"
},
"dependencies": {
"aphrodite": "^1.2.1",
"aphrodite": "^1.2.5",
"next": "latest",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-with-styles": "^1.4.0",
"react-with-styles-interface-aphrodite": "^1.2.0"
"react-with-styles": "^2.2.0",
"react-with-styles-interface-aphrodite": "^3.1.1"
},
"license": "MIT"
}

View file

@ -1,9 +1,9 @@
import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet'
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'
ThemedStyleSheet.registerDefaultTheme(MyDefaultTheme)
ThemedStyleSheet.registerTheme(MyDefaultTheme)
ThemedStyleSheet.registerInterface(aphroditeInterface)
export { css, withStyles, ThemeProvider, ThemedStyleSheet }
export { css, withStyles, ThemedStyleSheet }