From 0ea7515ad21e8d4e3fd798bf3e1341f0caf56821 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Fri, 17 May 2024 22:21:07 +0800 Subject: [PATCH] refactor: update survey icon --- src/client/components/CommandPanel.tsx | 7 ++++--- src/client/pages/Layout/DesktopLayout.tsx | 5 ++--- src/client/pages/Layout/MobileLayout.tsx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/client/components/CommandPanel.tsx b/src/client/components/CommandPanel.tsx index eb704c6..e30a0b5 100644 --- a/src/client/components/CommandPanel.tsx +++ b/src/client/components/CommandPanel.tsx @@ -16,10 +16,11 @@ import { LuMonitorDot, LuSearch, LuServer, - LuTableProperties, LuUserCircle2, LuWifi, } from 'react-icons/lu'; +import { RiSurveyLine } from 'react-icons/ri'; + import { NavigateOptions, useNavigate } from '@tanstack/react-router'; import { useEvent } from '@/hooks/useEvent'; import { useCommandState } from 'cmdk'; @@ -139,7 +140,7 @@ export const CommandPanel: React.FC = React.memo((props) => { to: '/survey', })} > - + {t('Survey')} @@ -277,7 +278,7 @@ export const CommandPanelSearchGroup: React.FC = }, })} > - + {s.name} ))} diff --git a/src/client/pages/Layout/DesktopLayout.tsx b/src/client/pages/Layout/DesktopLayout.tsx index 20b9596..f0ad33a 100644 --- a/src/client/pages/Layout/DesktopLayout.tsx +++ b/src/client/pages/Layout/DesktopLayout.tsx @@ -4,10 +4,8 @@ import { LuFilePieChart, LuMonitorDot, LuServer, - LuTableProperties, LuWifi, } from 'react-icons/lu'; -import { TooltipProvider } from '@/components/ui/tooltip'; import { ResizableHandle, ResizablePanel, @@ -25,6 +23,7 @@ import { useUserStore } from '@/store/user'; import { LayoutProps } from './types'; import { useTranslation } from '@i18next-toolkit/react'; import { CommandPanel } from '@/components/CommandPanel'; +import { RiSurveyLine } from 'react-icons/ri'; const defaultLayout: [number, number, number] = [265, 440, 655]; @@ -101,7 +100,7 @@ export const DesktopLayout: React.FC = React.memo((props) => { { title: t('Survey'), label: String(serviceCount?.survey ?? ''), - icon: LuTableProperties, + icon: RiSurveyLine, to: '/survey', }, ]} diff --git a/src/client/pages/Layout/MobileLayout.tsx b/src/client/pages/Layout/MobileLayout.tsx index 9cc53fc..2809b2d 100644 --- a/src/client/pages/Layout/MobileLayout.tsx +++ b/src/client/pages/Layout/MobileLayout.tsx @@ -5,7 +5,6 @@ import { LuMonitorDot, LuMoreVertical, LuServer, - LuTableProperties, LuWifi, } from 'react-icons/lu'; import { useTranslation } from '@i18next-toolkit/react'; @@ -17,6 +16,7 @@ import { LayoutProps } from './types'; import { UserConfig } from './UserConfig'; import { Drawer, DrawerContent, DrawerTrigger } from '@/components/ui/drawer'; import { MobileLayoutMenu } from './Menu'; +import { RiSurveyLine } from 'react-icons/ri'; export const MobileLayout: React.FC = React.memo((props) => { const { t } = useTranslation(); @@ -75,7 +75,7 @@ export const MobileLayout: React.FC = React.memo((props) => { />