mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
fix(css): apply workaround for chrome bug (#146)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import '@assets/main.css'
|
||||
import 'keen-slider/keen-slider.min.css'
|
||||
import '@assets/chrome-bug.css'
|
||||
|
||||
import { FC } from 'react'
|
||||
import { FC, useEffect } from 'react'
|
||||
import type { AppProps } from 'next/app'
|
||||
|
||||
import { ManagedUIContext } from '@components/ui/context'
|
||||
@@ -12,6 +13,10 @@ const Noop: FC = ({ children }) => <>{children}</>
|
||||
export default function MyApp({ Component, pageProps }: AppProps) {
|
||||
const Layout = (Component as any).Layout || Noop
|
||||
|
||||
useEffect(() => {
|
||||
document.body.classList?.remove('loading')
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<>
|
||||
<Head />
|
||||
|
Reference in New Issue
Block a user