Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ checkbox component #49

Merged
merged 1 commit into from
Nov 26, 2022
Merged

✨ checkbox component #49

merged 1 commit into from
Nov 26, 2022

Conversation

hwangyena
Copy link
Collaborator

What's Changed?

  • 체크박스 컴포넌트 추가
  • storybook에서 Next.js module 파일 경로를 찾아오지 못하는 이슈가 있어 해결했습니다. 참고

Screenshots

image

Related to any issues?

  • ⛔️

Dependency Changes

  • ⛔️

Test Code

  • ⛔️

@hwangyena hwangyena added the enhancement New feature or request label Nov 21, 2022
@hwangyena hwangyena self-assigned this Nov 21, 2022
}

const CheckBox = ({ checked, disabled, label, onChange, ...props }: Props) => {
const [isChecked, setIsChecked] = useState(false);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checked 값을 이미 props로 받고있는데 체크박스 컴포넌트 내부에서 따로 isChecked 상태를 관리하는 이유가 뭔가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

데이터를 미리 fetch 할 수 있는 경우를 생각했는데,,,,, 이 컴포넌트에서는 필요없겠네용 수정하겠습니다

Copy link
Member

@L2HYUNN L2HYUNN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@L2HYUNN L2HYUNN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hwangyena hwangyena merged commit 324c934 into dev Nov 26, 2022
@hwangyena hwangyena deleted the feature/checkbox branch November 26, 2022 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants