Skip to content

refactor: any 제거#155

Merged
hae-on merged 1 commit intofeat/v2from
refactor/issue-154
Jun 14, 2024
Merged

refactor: any 제거#155
hae-on merged 1 commit intofeat/v2from
refactor/issue-154

Conversation

@hae-on
Copy link
Copy Markdown
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 Leejin-Yang and xodms0309 June 9, 2024 06:03
@hae-on hae-on self-assigned this Jun 9, 2024
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 9, 2024

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

Copy link
Copy Markdown
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
Copy Markdown
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.

구우웃

Comment thread src/types/common.ts

export type CategoryVariant = 'food' | 'store';
export type MemberPostVariant = 'recipe' | 'review';
export type TabVariant = CategoryVariant | MemberPostVariant;
Copy link
Copy Markdown
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
@hae-on hae-on deleted the refactor/issue-154 branch June 14, 2024 13:38
hae-on added a commit that referenced this pull request Nov 23, 2025
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