|
1 | 1 | import { Features, FeaturesProps } from '@lobehub/ui';
|
2 |
| -import { Segmented } from 'antd'; |
3 | 2 | import { createStyles } from 'antd-style';
|
4 | 3 | import { Expand, GitPullRequest, Trees } from 'lucide-react';
|
5 |
| -import { useState } from 'react'; |
6 | 4 | import { Center } from 'react-layout-kit';
|
7 | 5 |
|
8 | 6 | import Dashboard from '@/components/Dashboard';
|
9 |
| -import DashboardText from '@/components/Dashboard/Text'; |
10 | 7 |
|
11 | 8 | const items: FeaturesProps['items'] = [
|
12 | 9 | {
|
@@ -45,23 +42,11 @@ const useStyles = createStyles(({ css, token }) => ({
|
45 | 42 | }));
|
46 | 43 |
|
47 | 44 | export default () => {
|
48 |
| - const [avtive, setActive] = useState('icons'); |
49 | 45 | const { styles } = useStyles();
|
50 | 46 |
|
51 | 47 | return (
|
52 | 48 | <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} /> |
65 | 50 | <Features items={items} />
|
66 | 51 | </Center>
|
67 | 52 | );
|
|
0 commit comments