From 6faf3709d649024dcde0cc6fb389991bed0882da Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 8 May 2020 12:41:25 +0200 Subject: [PATCH] packages/core: fix layout/Sidebar icon prop type --- packages/core/src/layout/Sidebar/Items.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/core/src/layout/Sidebar/Items.tsx b/packages/core/src/layout/Sidebar/Items.tsx index 87a3038a55..62f02ca58b 100644 --- a/packages/core/src/layout/Sidebar/Items.tsx +++ b/packages/core/src/layout/Sidebar/Items.tsx @@ -14,19 +14,13 @@ * limitations under the License. */ -import { - Link, - makeStyles, - styled, - SvgIcon, - Theme, - Typography, -} from '@material-ui/core'; +import { Link, makeStyles, styled, Theme, Typography } from '@material-ui/core'; import clsx from 'clsx'; import React, { FC, useContext } from 'react'; import { sidebarConfig, SidebarContext } from './config'; +import { IconComponent } from '../../icons'; -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles((theme) => ({ root: { color: '#b5b5b5', display: 'flex', @@ -59,7 +53,7 @@ const useStyles = makeStyles(theme => ({ })); type SidebarItemProps = { - icon: typeof SvgIcon; + icon: IconComponent; text: string; to?: string; onClick?: () => void;