commerce/pages/_app.tsx
Luis Alvarez f46d122b88 Revert "Testing potential reason"
This reverts commit aebc275303e6d26dd1d3657199cad645d26f3b56.
2020-10-03 04:54:28 -05:00

16 lines
348 B
TypeScript

import { FC } from 'react'
import type { AppProps } from 'next/app'
import '@assets/global.css'
const Noop: FC = ({ children }) => <>{children}</>
export default function MyApp({ Component, pageProps }: AppProps) {
const Layout = (Component as any).Layout || Noop
return (
<Layout>
<Component {...pageProps} />
</Layout>
)
}