Skip to content

Commit 7021a40

Browse files
🐛 fix: Fix homepage
1 parent c34e900 commit 7021a40

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

docs/index.tsx

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import { Features, FeaturesProps } from '@lobehub/ui';
2-
import { Segmented } from 'antd';
32
import { createStyles } from 'antd-style';
43
import { Expand, GitPullRequest, Trees } from 'lucide-react';
5-
import { useState } from 'react';
64
import { Center } from 'react-layout-kit';
75

86
import Dashboard from '@/components/Dashboard';
9-
import DashboardText from '@/components/Dashboard/Text';
107

118
const items: FeaturesProps['items'] = [
129
{
@@ -45,23 +42,11 @@ const useStyles = createStyles(({ css, token }) => ({
4542
}));
4643

4744
export default () => {
48-
const [avtive, setActive] = useState('icons');
4945
const { styles } = useStyles();
5046

5147
return (
5248
<Center className={styles.container} gap={16}>
53-
<Segmented
54-
className={styles.segmented}
55-
onChange={(v) => setActive(v as any)}
56-
options={[
57-
{ label: 'Brand Icons', value: 'icons' },
58-
{ label: 'Brand Texts', value: 'texts' },
59-
]}
60-
size={'large'}
61-
value={avtive}
62-
/>
63-
{avtive === 'icons' && <Dashboard className={styles.dashboard} />}
64-
{avtive === 'texts' && <DashboardText className={styles.dashboard} />}
49+
<Dashboard className={styles.dashboard} />
6550
<Features items={items} />
6651
</Center>
6752
);

0 commit comments

Comments
 (0)