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

Fix: "undefined" 클래스명 문제 해결을 위해 classnames 라이브러리 적용 #3

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

JayeHa
Copy link
Owner

@JayeHa JayeHa commented Feb 27, 2024

컴포넌트의 className prop이 undefined일 때 "undefined" 문자열이 추가되는 문제를 해결했습니다.

  • classnames 라이브러리를 프로젝트 의존성에 추가하였습니다.
  • 기존 컴포넌트에서 className을 직접 조작하여 사용하던 부분을 classnames를 사용하여 리팩토링하였습니다. 이를 통해 classNameundefined인 경우 해당 값이 클래스에 포함되지 않도록 처리하였습니다.

변경 전:

image

변경 후:

image

@JayeHa JayeHa added the bug Something isn't working label Feb 27, 2024
@JayeHa JayeHa self-assigned this Feb 27, 2024
Copy link

vercel bot commented Feb 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
classting-quiz-app ✅ Ready (Inspect) Visit Preview Feb 27, 2024 9:45am

@JayeHa JayeHa merged commit 5a1c05f into main Feb 27, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant