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

refactor: any 제거 #155

Merged
merged 1 commit into from
Jun 14, 2024
Merged

refactor: any 제거 #155

merged 1 commit into from
Jun 14, 2024

Conversation

hae-on
Copy link
Contributor

@hae-on hae-on commented Jun 9, 2024

Issue

✨ 구현한 기능

TabMenu의 any를 제거했습니다.
대신 as 생김 ㅎ

📢 논의하고 싶은 내용

Tab을 사용하는 곳이 늘어나면, 그만큼 common.ts의 TabVariant에 추가해야함 (= 범용성 떨어짐)
하지만 any를 없애는 것에 의의를 두었음.
더 좋은 해결 방법을 알면 알려주세요.

🎸 기타

�x

⏰ 일정

  • 추정 시간 : 10분
  • 걸린 시간 : 10분

@hae-on hae-on requested review from xodms0309 and Leejin-Yang June 9, 2024 06:03
@hae-on hae-on self-assigned this Jun 9, 2024
Copy link

github-actions bot commented Jun 9, 2024

🔗 배포된 storybook 주소: https://65f015a4aed45406385006ee-qoqeqispbc.chromatic.com/

Copy link
Member

@xodms0309 xodms0309 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
Contributor

@Leejin-Yang Leejin-Yang left a comment

Choose a reason for hiding this comment

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

구우웃

@@ -12,6 +12,7 @@ import type { PATH } from '@/constants/path';

export type CategoryVariant = 'food' | 'store';
export type MemberPostVariant = 'recipe' | 'review';
export type TabVariant = CategoryVariant | MemberPostVariant;
Copy link
Contributor

Choose a reason for hiding this comment

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

백배 더 좋네요 👍

@hae-on hae-on merged commit 705bc23 into feat/v2 Jun 14, 2024
2 of 3 checks passed
@hae-on hae-on deleted the refactor/issue-154 branch June 14, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TabMenu any 제거
3 participants