Moved UIProvider to the layout

This commit is contained in:
Luis Alvarez
2020-10-01 21:18:01 -05:00
parent 0ef6449aff
commit 6587ab10ae
2 changed files with 12 additions and 13 deletions

View File

@@ -1,13 +1,6 @@
import type { AppProps } from 'next/app'
import '@assets/global.css'
import React from 'react'
import { UIProvider } from '@components/ui/context'
export default function MyApp({ Component, pageProps }) {
return (
<>
<UIProvider>
<Component {...pageProps} />
</UIProvider>
</>
)
export default function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
}