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

[D-TP] 공지사항 위젯 #547

Merged
merged 11 commits into from
Jan 27, 2024
Merged

[D-TP] 공지사항 위젯 #547

merged 11 commits into from
Jan 27, 2024

Conversation

yoouyeon
Copy link
Contributor

@yoouyeon yoouyeon commented Jan 23, 2024

작업 내용

공지사항 위젯을 추가했습니다.

공지사항 위젯 L / M

Screen_Shot 2024-01-24 00 09 30 Screen_Shot 2024-01-24 00 17 05 Screen_Shot 2024-01-23 20 31 20

공지사항 미리보기

Screen_Shot 2024-01-24 00 09 47

추가 작업 예정인 것들

  • 지원하지 않는 크기의 위젯은 설정하지 못하도록 막기
  • api 연결 테스트
  • 디자인 다듬기

관련 이슈

@yoouyeon yoouyeon self-assigned this Jan 23, 2024
Copy link

sonarcloud bot commented Jan 23, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@yoouyeon yoouyeon marked this pull request as ready for review January 25, 2024 00:24
@yoouyeon yoouyeon requested a review from a team as a code owner January 25, 2024 00:24
@yoouyeon yoouyeon requested review from HiHoi and asroq1 January 25, 2024 00:24
Copy link
Contributor

Choose a reason for hiding this comment

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

key={crypto.randomUUID()} key값에 인자는 왜 이렇게 넣어주시는 걸까요 ? 처음 보는 형태라 궁금해서 질문드립니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

소나클라우드에서 index를 map의 key 값으로 넣어주면 warning을 띄우더라구요. index 말고는 마땅히 key로 써줄 값이 없어서 내장객체 crypto의 randomUUID 메소드를 이용해서 랜덤한 key를 넣어준거예요! https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID

근데 리뷰 남겨주신 것 보고 다시 보니까 여기는 randomUUID를 쓰지 않고도 postId를 가지고 key를 부여할 수 있었네요.... 이거는 다음 PR에 수정해두겠습니다 🥲

Copy link
Contributor

Choose a reason for hiding this comment

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

덕분에 이런 방식도 사용할 수 있는지 배웠네요! 감사합니다 ㅎㅎ

@yoouyeon yoouyeon merged commit 4aaa374 into develop Jan 27, 2024
5 checks passed
@yoouyeon yoouyeon deleted the feat/widget/notice branch January 27, 2024 05:59
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.

2 participants