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

[FE] 지출 내역 추가 플로우에서 참여 인원의 토큰의 x버튼에 낭독기 커서가 가도록 함 #759

Merged
merged 12 commits into from
Oct 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: 하드코딩된 IconType의 타입을 ICON 객체의 프로퍼티 키 값으로 하도록 수정
  • Loading branch information
pakxe committed Oct 16, 2024
commit 1cecfdabd447a097740d9b74f46559fd180ff39f
20 changes: 3 additions & 17 deletions client/src/components/Design/components/Icon/Icon.type.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
import {Theme} from '@theme/theme.type';
import {ColorKeys} from '@token/colors';

export type IconType =
| 'inputDelete'
| 'buljusa'
| 'rightChevron'
| 'search'
| 'error'
| 'confirm'
| 'trash'
| 'trashMini'
| 'check'
| 'x'
| 'pencilMini'
| 'toss'
| 'meatballs'
| 'editPencil'
| 'heundeut'
| 'photoButton';
import {ICON} from './Icon';

export type IconType = keyof typeof ICON;
Comment on lines +4 to +6
Copy link
Contributor

Choose a reason for hiding this comment

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

🚀🚀🚀🚀🚀

Copy link
Contributor

Choose a reason for hiding this comment

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

와 이거 매번 추가해주기 귀찮았는데~~ 너무 좋아요


export type IconColor = ColorKeys;