From 6f46930effbe0d71d628baca63c2dce3ca65cca6 Mon Sep 17 00:00:00 2001 From: healtheloper Date: Fri, 15 Sep 2023 15:21:10 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C=20import?= =?UTF-8?q?=20=EC=A7=80=EC=9B=A0=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/co-design-core/src/components/Chips/Chip.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/co-design-core/src/components/Chips/Chip.tsx b/packages/co-design-core/src/components/Chips/Chip.tsx index a9a3976..695e138 100644 --- a/packages/co-design-core/src/components/Chips/Chip.tsx +++ b/packages/co-design-core/src/components/Chips/Chip.tsx @@ -1,11 +1,10 @@ -import React, { MouseEventHandler, SyntheticEvent, forwardRef } from 'react'; +import React, { forwardRef } from 'react'; import { useUncontrolled, useId } from '@co-design/hooks'; import { CoComponentProps, CoPalette, CoSize, CoRadius, useCoTheme, ClassNames } from '@co-design/styles'; import { View } from '../View'; import { CheckboxIcon } from './CheckboxIcon'; import useStyles from './Chip.style'; import CloseIcon from './CloseIcon'; -import { Text } from '../Text'; export type ChipStylesNames = ClassNames; @@ -107,9 +106,7 @@ export const Chip = forwardRef( type={type} className={classes.input} checked={value} - onChange={(event) => { - setValue(event.currentTarget.checked); - }} + onChange={(event) => setValue(event.currentTarget.checked)} id={uuid} disabled={disabled} ref={ref}