From 7021a40fccbe3ff96a0ef9e72cf6c127b4d37743 Mon Sep 17 00:00:00 2001 From: CanisMinor Date: Fri, 2 Feb 2024 17:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Fix=20homepage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/index.tsx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/docs/index.tsx b/docs/index.tsx index 8ce144d..065cf52 100644 --- a/docs/index.tsx +++ b/docs/index.tsx @@ -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'] = [ { @@ -45,23 +42,11 @@ const useStyles = createStyles(({ css, token }) => ({ })); export default () => { - const [avtive, setActive] = useState('icons'); const { styles } = useStyles(); return (
- setActive(v as any)} - options={[ - { label: 'Brand Icons', value: 'icons' }, - { label: 'Brand Texts', value: 'texts' }, - ]} - size={'large'} - value={avtive} - /> - {avtive === 'icons' && } - {avtive === 'texts' && } +
);