Unverified Commit 9fb2432b authored by Mohsen Azimi's avatar Mohsen Azimi Committed by GitHub

Add ThemedStyleSheet.registerInterface to react-with-styles example (#13284)

My [draft PR was merged](https://github.com/zeit/next.js/pull/13193) so let's at least keep the code in canary in a working state. 
parent 3ee0a1f4
...@@ -2,11 +2,14 @@ import React from 'react' ...@@ -2,11 +2,14 @@ import React from 'react'
import { DIRECTIONS } from 'react-with-direction' import { DIRECTIONS } from 'react-with-direction'
import AphroditeInterface from 'react-with-styles-interface-aphrodite' import AphroditeInterface from 'react-with-styles-interface-aphrodite'
import WithStylesContext from 'react-with-styles/lib/WithStylesContext' import WithStylesContext from 'react-with-styles/lib/WithStylesContext'
import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet'
import defaultTheme from '../defaultTheme' import defaultTheme from '../defaultTheme'
function MyApp(props) { function MyApp(props) {
const { Component, pageProps } = props const { Component, pageProps } = props
ThemedStyleSheet.registerInterface(AphroditeInterface)
return ( return (
<WithStylesContext.Provider <WithStylesContext.Provider
value={{ value={{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment