refactor: update survey icon
This commit is contained in:
parent
00d40c8410
commit
0ea7515ad2
@ -16,10 +16,11 @@ import {
|
|||||||
LuMonitorDot,
|
LuMonitorDot,
|
||||||
LuSearch,
|
LuSearch,
|
||||||
LuServer,
|
LuServer,
|
||||||
LuTableProperties,
|
|
||||||
LuUserCircle2,
|
LuUserCircle2,
|
||||||
LuWifi,
|
LuWifi,
|
||||||
} from 'react-icons/lu';
|
} from 'react-icons/lu';
|
||||||
|
import { RiSurveyLine } from 'react-icons/ri';
|
||||||
|
|
||||||
import { NavigateOptions, useNavigate } from '@tanstack/react-router';
|
import { NavigateOptions, useNavigate } from '@tanstack/react-router';
|
||||||
import { useEvent } from '@/hooks/useEvent';
|
import { useEvent } from '@/hooks/useEvent';
|
||||||
import { useCommandState } from 'cmdk';
|
import { useCommandState } from 'cmdk';
|
||||||
@ -139,7 +140,7 @@ export const CommandPanel: React.FC<CommandPanelProps> = React.memo((props) => {
|
|||||||
to: '/survey',
|
to: '/survey',
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<LuTableProperties className="mr-2 h-4 w-4" />
|
<RiSurveyLine className="mr-2 h-4 w-4" />
|
||||||
{t('Survey')}
|
{t('Survey')}
|
||||||
</CommandItem>
|
</CommandItem>
|
||||||
</CommandGroup>
|
</CommandGroup>
|
||||||
@ -277,7 +278,7 @@ export const CommandPanelSearchGroup: React.FC<CommandPanelSearchGroupProps> =
|
|||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<LuTableProperties className="mr-2 h-4 w-4" />
|
<RiSurveyLine className="mr-2 h-4 w-4" />
|
||||||
{s.name}
|
{s.name}
|
||||||
</CommandItem>
|
</CommandItem>
|
||||||
))}
|
))}
|
||||||
|
@ -4,10 +4,8 @@ import {
|
|||||||
LuFilePieChart,
|
LuFilePieChart,
|
||||||
LuMonitorDot,
|
LuMonitorDot,
|
||||||
LuServer,
|
LuServer,
|
||||||
LuTableProperties,
|
|
||||||
LuWifi,
|
LuWifi,
|
||||||
} from 'react-icons/lu';
|
} from 'react-icons/lu';
|
||||||
import { TooltipProvider } from '@/components/ui/tooltip';
|
|
||||||
import {
|
import {
|
||||||
ResizableHandle,
|
ResizableHandle,
|
||||||
ResizablePanel,
|
ResizablePanel,
|
||||||
@ -25,6 +23,7 @@ import { useUserStore } from '@/store/user';
|
|||||||
import { LayoutProps } from './types';
|
import { LayoutProps } from './types';
|
||||||
import { useTranslation } from '@i18next-toolkit/react';
|
import { useTranslation } from '@i18next-toolkit/react';
|
||||||
import { CommandPanel } from '@/components/CommandPanel';
|
import { CommandPanel } from '@/components/CommandPanel';
|
||||||
|
import { RiSurveyLine } from 'react-icons/ri';
|
||||||
|
|
||||||
const defaultLayout: [number, number, number] = [265, 440, 655];
|
const defaultLayout: [number, number, number] = [265, 440, 655];
|
||||||
|
|
||||||
@ -101,7 +100,7 @@ export const DesktopLayout: React.FC<LayoutProps> = React.memo((props) => {
|
|||||||
{
|
{
|
||||||
title: t('Survey'),
|
title: t('Survey'),
|
||||||
label: String(serviceCount?.survey ?? ''),
|
label: String(serviceCount?.survey ?? ''),
|
||||||
icon: LuTableProperties,
|
icon: RiSurveyLine,
|
||||||
to: '/survey',
|
to: '/survey',
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
@ -5,7 +5,6 @@ import {
|
|||||||
LuMonitorDot,
|
LuMonitorDot,
|
||||||
LuMoreVertical,
|
LuMoreVertical,
|
||||||
LuServer,
|
LuServer,
|
||||||
LuTableProperties,
|
|
||||||
LuWifi,
|
LuWifi,
|
||||||
} from 'react-icons/lu';
|
} from 'react-icons/lu';
|
||||||
import { useTranslation } from '@i18next-toolkit/react';
|
import { useTranslation } from '@i18next-toolkit/react';
|
||||||
@ -17,6 +16,7 @@ import { LayoutProps } from './types';
|
|||||||
import { UserConfig } from './UserConfig';
|
import { UserConfig } from './UserConfig';
|
||||||
import { Drawer, DrawerContent, DrawerTrigger } from '@/components/ui/drawer';
|
import { Drawer, DrawerContent, DrawerTrigger } from '@/components/ui/drawer';
|
||||||
import { MobileLayoutMenu } from './Menu';
|
import { MobileLayoutMenu } from './Menu';
|
||||||
|
import { RiSurveyLine } from 'react-icons/ri';
|
||||||
|
|
||||||
export const MobileLayout: React.FC<LayoutProps> = React.memo((props) => {
|
export const MobileLayout: React.FC<LayoutProps> = React.memo((props) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@ -75,7 +75,7 @@ export const MobileLayout: React.FC<LayoutProps> = React.memo((props) => {
|
|||||||
/>
|
/>
|
||||||
<MobileNavItem
|
<MobileNavItem
|
||||||
title={t('Survey')}
|
title={t('Survey')}
|
||||||
icon={LuTableProperties}
|
icon={RiSurveyLine}
|
||||||
to="/survey"
|
to="/survey"
|
||||||
extraModal={true}
|
extraModal={true}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user