From 9e4694bf3fb39971d1034f5396444c5f091e1287 Mon Sep 17 00:00:00 2001 From: HiImConan Date: Sun, 19 Nov 2023 11:47:13 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EA=B3=B5=ED=86=B5=20props=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Icon/index.tsx | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/components/common/Icon/index.tsx b/src/components/common/Icon/index.tsx index e3eea7f..34931f8 100644 --- a/src/components/common/Icon/index.tsx +++ b/src/components/common/Icon/index.tsx @@ -1,27 +1,21 @@ import { ComponentProps } from 'react'; -import { $ } from '@/utils/core'; - import { IconName } from './icon.type'; import { iconMap } from './IconMap'; interface IconProps extends ComponentProps<'svg'> { iconName: IconName; - width?: number; - height?: number; - className?: string; } -export const Icon = ({ - iconName, - width = 24, - height = 24, - className, - ...props -}: IconProps) => { +export const Icon = ({ iconName, ...props }: IconProps) => { const path = iconMap[iconName]; return ( - + );