2020-05-22 19:54:36 +02:00
|
|
|
import { DIRECTIONS } from 'react-with-direction'
|
|
|
|
import AphroditeInterface from 'react-with-styles-interface-aphrodite'
|
|
|
|
import WithStylesContext from 'react-with-styles/lib/WithStylesContext'
|
2020-05-24 00:12:24 +02:00
|
|
|
import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet'
|
2020-05-22 19:54:36 +02:00
|
|
|
import defaultTheme from '../defaultTheme'
|
|
|
|
|
|
|
|
function MyApp(props) {
|
|
|
|
const { Component, pageProps } = props
|
|
|
|
|
2020-05-24 00:12:24 +02:00
|
|
|
ThemedStyleSheet.registerInterface(AphroditeInterface)
|
|
|
|
|
2020-05-22 19:54:36 +02:00
|
|
|
return (
|
|
|
|
<WithStylesContext.Provider
|
|
|
|
value={{
|
|
|
|
stylesInterface: AphroditeInterface,
|
|
|
|
stylesTheme: defaultTheme,
|
|
|
|
direction: DIRECTIONS.LTR,
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</WithStylesContext.Provider>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MyApp
|