rsnext/examples/with-react-with-styles/pages/_app.js
Jesse Jafa 2828b01950
Fixing Redundant React imports on next.js/examples (#13384)
Per https://github.com/zeit/next.js/issues/12964

* with-ant-design
* with-dynamic-import
* with-iron-session
* with-monaco-editor
* with-next-page-transitions
* with-react-with-styles
* with-style-sheet
* with-why-did-you-render

Tested each example, working as intended, no additional issues presented
2020-05-26 15:03:58 +00:00

25 lines
716 B
JavaScript

import { DIRECTIONS } from 'react-with-direction'
import AphroditeInterface from 'react-with-styles-interface-aphrodite'
import WithStylesContext from 'react-with-styles/lib/WithStylesContext'
import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet'
import defaultTheme from '../defaultTheme'
function MyApp(props) {
const { Component, pageProps } = props
ThemedStyleSheet.registerInterface(AphroditeInterface)
return (
<WithStylesContext.Provider
value={{
stylesInterface: AphroditeInterface,
stylesTheme: defaultTheme,
direction: DIRECTIONS.LTR,
}}
>
<Component {...pageProps} />
</WithStylesContext.Provider>
)
}
export default MyApp