Skip to content

Commit 541ce69

Browse files
committed
chore: move FeedbackWidget declaration outside of main component
1 parent 5cb52ac commit 541ce69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/layouts/RootLayout.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ import { SkipLink } from "@/components/SkipLink"
1616
// import { DEFAULT_LOCALE } from "@/lib/constants"
1717
import { lightTheme as oldTheme } from "../theme"
1818

19+
const FeedbackWidget = dynamic(() => import("@/components/FeedbackWidget"), {
20+
ssr: false,
21+
})
22+
1923
export const RootLayout = ({
2024
children,
2125
// contentIsOutdated,
@@ -44,10 +48,6 @@ export const RootLayout = ({
4448
// const shouldShowLegalTranslationBanner = isLegal && !isPageLanguageEnglish
4549
// const originalPagePath = toPosixPath(join(DEFAULT_LOCALE, asPath))
4650

47-
const FeedbackWidget = dynamic(() => import("@/components/FeedbackWidget"), {
48-
ssr: false,
49-
})
50-
5151
return (
5252
<Container mx="auto" maxW={oldTheme.variables.maxPageWidth}>
5353
<SkipLink />

0 commit comments

Comments
 (0)