Fix not found pages showing duplicate trademark badges (#4209)

This commit is contained in:
spastorelli
2026-04-23 16:31:40 +01:00
committed by GitHub
parent 54a56ed772
commit 2b98af0cc0
@@ -6,6 +6,7 @@ import { tcls } from '@/lib/tailwind';
import { SiteInsightsDisplayContext } from '@gitbook/api';
import { useRouter, useSearchParams } from 'next/navigation';
import { useEffect } from 'react';
import { PreservePageLayout } from '../PageBody/PreservePageLayout';
import { SiteAuthLoginButton } from '../SiteAuth/SiteAuthLoginLink';
import { useSiteAdaptiveAuthLoginHref, useSpaceBasePath } from '../SpaceLayout/SpaceLayoutContext';
import { CurrentPageProvider } from '../hooks';
@@ -40,6 +41,8 @@ export function SitePageNotFound() {
<CurrentPageProvider page={null}>
<div
className={tcls(
'layout-default',
'page-has-toc',
'flex-1',
'flex',
'flex-row',
@@ -49,6 +52,7 @@ export function SitePageNotFound() {
'min-h-[calc(100vh-64px)] lg:min-h-fit'
)}
>
<PreservePageLayout wideLayout={false} pageHasToc={true} />
<div className={tcls('max-w-80')}>
<h2 className={tcls('text-2xl', 'font-semibold', 'mb-2')}>
{t(