fix icons

This commit is contained in:
Simon Larsen
2022-12-15 13:53:05 +05:30
parent 41d8d54cf8
commit ae4d39897a
2 changed files with 24 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ import {
Power,
Image,
Globe,
Layout,
MoreVertical,
CreditCard,
File,
@@ -60,6 +61,7 @@ import {
Codesandbox,
Star,
ArrowDown,
Compass,
} from 'react-feather';
export enum SizeProp {
@@ -82,6 +84,8 @@ export enum ThickProp {
export enum IconProp {
File,
Automation,
Layout,
Compass,
User,
Disc,
Settings,
@@ -656,6 +660,23 @@ const Icon: FunctionComponent<ComponentProps> = ({
color={color ? color.toString() : (undefined as any)}
/>
)}
{icon === IconProp.Layout && (
<Layout
size={size}
strokeWidth={thick ? thick : ''}
color={color ? color.toString() : (undefined as any)}
/>
)}
{icon === IconProp.Compass && (
<Compass
size={size}
strokeWidth={thick ? thick : ''}
color={color ? color.toString() : (undefined as any)}
/>
)}
</div>
);
};

View File

@@ -182,7 +182,7 @@ const DashboardSideMenu: FunctionComponent<ComponentProps> = (
props.modelId
),
}}
icon={IconProp.Layers}
icon={IconProp.Layout}
/>
<SideMenuItem
@@ -200,7 +200,7 @@ const DashboardSideMenu: FunctionComponent<ComponentProps> = (
<SideMenuItem
link={{
title: 'Navigation Menu',
title: 'Navigation',
to: RouteUtil.populateRouteParams(
RouteMap[
PageMap.STATUS_PAGE_VIEW_NAVBAR_STYLE
@@ -208,7 +208,7 @@ const DashboardSideMenu: FunctionComponent<ComponentProps> = (
props.modelId
),
}}
icon={IconProp.Layers}
icon={IconProp.Compass}
/>
</SideMenuSection>