commerce/pages/_app.tsx

31 lines
700 B
TypeScript
Raw Normal View History

2020-10-15 11:45:01 -03:00
import '@assets/global.css'
import '@assets/tailwind.css'
import '@assets/utils.css'
import 'keen-slider/keen-slider.min.css'
2020-10-20 16:19:02 -03:00
// To be removed
2020-10-15 11:45:01 -03:00
import 'animate.css'
2020-10-20 16:19:02 -03:00
2020-10-01 21:30:08 -05:00
import { FC } from 'react'
2020-10-01 21:18:01 -05:00
import type { AppProps } from 'next/app'
2020-10-15 16:25:44 -03:00
2020-10-15 18:02:49 -03:00
import { ManagedUIContext } from '@components/ui/context'
import { Head } from '@components/core'
2020-10-14 14:38:21 -03:00
2020-10-01 21:30:08 -05:00
const Noop: FC = ({ children }) => <>{children}</>
2020-10-01 21:18:01 -05:00
export default function MyApp({ Component, pageProps }: AppProps) {
2020-10-01 21:30:08 -05:00
const Layout = (Component as any).Layout || Noop
return (
2020-10-14 12:27:54 -03:00
<>
2020-10-15 18:02:49 -03:00
<Head />
2020-10-15 18:05:13 -03:00
<ManagedUIContext>
<Layout pageProps={pageProps}>
2020-10-15 18:05:13 -03:00
<Component {...pageProps} />
</Layout>
</ManagedUIContext>
2020-10-14 12:27:54 -03:00
</>
2020-10-01 21:30:08 -05:00
)
2020-09-23 15:19:36 -03:00
}