mirror of
https://github.com/MAGICGrants/campaign-site.git
synced 2026-01-09 12:27:59 -05:00
fix: address font not always loading bug
This commit is contained in:
@@ -9,19 +9,25 @@ interface Props {
|
||||
children: ReactNode
|
||||
}
|
||||
|
||||
const inter = Inter({
|
||||
subsets: ['latin'],
|
||||
})
|
||||
const inter = Inter({ subsets: ['latin'], display: 'swap', adjustFontFallback: false })
|
||||
|
||||
const LayoutWrapper = ({ children }: Props) => {
|
||||
return (
|
||||
<SectionContainer>
|
||||
<div className={`${inter.className} flex h-screen flex-col justify-between`}>
|
||||
<Header />
|
||||
<main className="grow">{children}</main>
|
||||
<Footer />
|
||||
</div>
|
||||
</SectionContainer>
|
||||
<>
|
||||
<style jsx global>{`
|
||||
html {
|
||||
font-family: ${inter.style.fontFamily};
|
||||
}
|
||||
`}</style>
|
||||
|
||||
<SectionContainer>
|
||||
<div className={`${inter.className} flex h-screen flex-col justify-between`}>
|
||||
<Header />
|
||||
<main className="grow">{children}</main>
|
||||
<Footer />
|
||||
</div>
|
||||
</SectionContainer>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user