Skip to content

review - 소프트 스킬 스탭 토스트 적용, Toast.Text children 타입 변경 #188

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

Merged
merged 3 commits into from
Jun 1, 2023

Conversation

hyesungoh
Copy link
Member

🤔 해결하려는 문제가 무엇인가요?

🎉 변경 사항

  • 소프트 스킬 스탭에서 max개 이상으로 누를 시 토스트를 띄웠어요

  • Toast.Text의 children 타입을 string에서 ReactNode로 바꿨어요

const MAX_LENGTH = 5;

...
fireToast({
        content: (
          <>
            <WarningIcon />
-            <Toast.Text>키워드는 {MAX_LENGTH}개까지 선택할 수 있어요</Toast.Text>
          </>
        ),
      });

위 코드에서 MAX_LENGTH의 타입이 number라 에러가 발생하더라구요. JSX를 그리는데 더 적절한 타입인 것 같아 ReactNode 타입으로 바꾸었어용

🌄 스크린샷

2023-05-31.1.28.49.mov

@hyesungoh hyesungoh added the feat New feature or request label May 30, 2023
@hyesungoh hyesungoh self-assigned this May 30, 2023
@github-actions
Copy link

Bundle Sizes

Compared against d97cd2a

Route: No significant changes found

Dynamic import: No significant changes found

@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (d97cd2a) 92.52% compared to head (53e2e10) 92.52%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #188   +/-   ##
=======================================
  Coverage   92.52%   92.52%           
=======================================
  Files          38       38           
  Lines         281      281           
  Branches       52       52           
=======================================
  Hits          260      260           
  Misses         21       21           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@sumi-0011 sumi-0011 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다 👍🏻

@hyesungoh hyesungoh merged commit de2820d into main Jun 1, 2023
@hyesungoh hyesungoh deleted the feat/review/soft-skill-toast branch June 1, 2023 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

review - 소프트 스킬 스탭 토스트 적용
3 participants