Skip to content

Commit

Permalink
🐛 fix: Fix homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 authored Feb 2, 2024
1 parent c34e900 commit 7021a40
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions docs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { Features, FeaturesProps } from '@lobehub/ui';
import { Segmented } from 'antd';
import { createStyles } from 'antd-style';
import { Expand, GitPullRequest, Trees } from 'lucide-react';
import { useState } from 'react';
import { Center } from 'react-layout-kit';

import Dashboard from '@/components/Dashboard';
import DashboardText from '@/components/Dashboard/Text';

const items: FeaturesProps['items'] = [
{
Expand Down Expand Up @@ -45,23 +42,11 @@ const useStyles = createStyles(({ css, token }) => ({
}));

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

return (
<Center className={styles.container} gap={16}>
<Segmented
className={styles.segmented}
onChange={(v) => setActive(v as any)}
options={[
{ label: 'Brand Icons', value: 'icons' },
{ label: 'Brand Texts', value: 'texts' },
]}
size={'large'}
value={avtive}
/>
{avtive === 'icons' && <Dashboard className={styles.dashboard} />}
{avtive === 'texts' && <DashboardText className={styles.dashboard} />}
<Dashboard className={styles.dashboard} />
<Features items={items} />
</Center>
);
Expand Down

0 comments on commit 7021a40

Please sign in to comment.