Skip to content

Commit afbceda

Browse files
committed
chore: remove banner
1 parent e902ea2 commit afbceda

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

website/theme/index.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
1-
import { Announcement } from '@rstack-dev/doc-ui/announcement';
21
import { NavIcon } from '@rstack-dev/doc-ui/nav-icon';
3-
import { NoSSR, useLang, usePageData } from 'rspress/runtime';
42
import Theme from 'rspress/theme';
53
import { HomeLayout } from './pages';
64
import './index.scss';
75

86
const Layout = () => {
9-
const { page } = usePageData();
10-
const lang = useLang();
117
return (
128
<Theme.Layout
139
beforeNavTitle={<NavIcon />}
14-
beforeNav={
15-
<NoSSR>
16-
<Announcement
17-
href={`${page.routePath.replace('/zh', '')}`}
18-
message={'🚧 Rslib 中文文档正在施工中,点击查阅英文文档'}
19-
localStorageKey="rslib-announcement-closed"
20-
display={lang === 'zh'}
21-
/>
22-
</NoSSR>
23-
}
2410
/>
2511
);
2612
};

0 commit comments

Comments
 (0)