Skip to content

Commit

Permalink
fix: checkBox 네이밍 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Josanghyeon authored and Josanghyeon committed Dec 20, 2022
1 parent afd4a8a commit ea9aaf2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
Expand Down
6 changes: 3 additions & 3 deletions src/components/checkBox/index.tsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -13,7 +13,7 @@ interface PropsType extends marginCssType {
}

/** checkBox 여러개 있을 때 처리를 딱히 안해둠 (사용할 때 고민해봅시다) */
export const Wrapper = ({
export const CheckBox = ({
className,
disabled = false,
label,
Expand All @@ -28,7 +28,7 @@ export const Wrapper = ({
onClick={() => !disabled && checkSetState(!status)}
margin={margin}
>
<CheckBox status={status} disabled={disabled} />
<Box status={status} disabled={disabled} />
{label && <Label label={label} disabled={disabled} />}
</_Wrapper>
);
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './components/button/Button';
export * as CheckBox from './components/checkBox';
export * from './components/checkBox';
export * from './components/dropdown';
export * from './components/input';
export * from './components/radio/Radio';
Expand Down

0 comments on commit ea9aaf2

Please sign in to comment.