From ea9aaf2e73b0b23fa5daf8d328a1f1e2df55b492 Mon Sep 17 00:00:00 2001 From: Josanghyeon Date: Tue, 20 Dec 2022 14:19:17 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20checkBox=20=EB=84=A4=EC=9D=B4=EB=B0=8D?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/checkBox/{CheckBox.tsx => Box.tsx} | 2 +- src/components/checkBox/index.tsx | 6 +++--- src/index.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/components/checkBox/{CheckBox.tsx => Box.tsx} (95%) diff --git a/src/components/checkBox/CheckBox.tsx b/src/components/checkBox/Box.tsx similarity index 95% rename from src/components/checkBox/CheckBox.tsx rename to src/components/checkBox/Box.tsx index eebe5f9..7fec893 100644 --- a/src/components/checkBox/CheckBox.tsx +++ b/src/components/checkBox/Box.tsx @@ -5,7 +5,7 @@ interface PropsType { status: boolean; } -export const CheckBox = ({ disabled, status }: PropsType) => { +export const Box = ({ disabled, status }: PropsType) => { return ( <_Wrapper disabled={disabled} status={status}> {status && ( diff --git a/src/components/checkBox/index.tsx b/src/components/checkBox/index.tsx index 750b8a0..ce89693 100644 --- a/src/components/checkBox/index.tsx +++ b/src/components/checkBox/index.tsx @@ -1,7 +1,7 @@ import { Dispatch, SetStateAction } from 'react'; import styled from 'styled-components'; import { marginCssType, marginToCss } from '../../utils/distance'; -import { CheckBox } from './CheckBox'; +import { Box } from './Box'; import { Label } from './Label'; interface PropsType extends marginCssType { @@ -13,7 +13,7 @@ interface PropsType extends marginCssType { } /** checkBox 여러개 있을 때 처리를 딱히 안해둠 (사용할 때 고민해봅시다) */ -export const Wrapper = ({ +export const CheckBox = ({ className, disabled = false, label, @@ -28,7 +28,7 @@ export const Wrapper = ({ onClick={() => !disabled && checkSetState(!status)} margin={margin} > - + {label &&