From 6089377c6bf7615ca3be5ca859fe168b763f6880 Mon Sep 17 00:00:00 2001 From: Thomas Kolar Date: Wed, 1 Nov 2017 19:53:45 +0100 Subject: [PATCH] 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 --- examples/with-react-with-styles/package.json | 6 +++--- examples/with-react-with-styles/withStyles.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/with-react-with-styles/package.json b/examples/with-react-with-styles/package.json index ad7f956b..5a2e7109 100644 --- a/examples/with-react-with-styles/package.json +++ b/examples/with-react-with-styles/package.json @@ -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" } diff --git a/examples/with-react-with-styles/withStyles.js b/examples/with-react-with-styles/withStyles.js index 1093d5e3..76c424ab 100644 --- a/examples/with-react-with-styles/withStyles.js +++ b/examples/with-react-with-styles/withStyles.js @@ -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 }