-
Notifications
You must be signed in to change notification settings - Fork 3
✨ Feat(#11): 할 일 카드 생성 모달 컴포넌트 구현 #184
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
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
90b6c92
✨ feat(#11): 할 일 카드 모달 퍼블리싱 및 columnId 전달
oceanlee-seoul a05aaf4
✨ feat(#11): 담당자 선택 드랍다운 구현
oceanlee-seoul 329b51d
Merge branch 'develop' into buildTest
oceanlee-seoul 5edf96e
✨ feat(#11): 할 일 카드 생성 기본 폼 구현
oceanlee-seoul e770620
Merge branch 'develop' into feature/newCardModal
oceanlee-seoul 82b1346
Merge branch 'develop' into feature/newCardModal
oceanlee-seoul 7f0ef72
✨ feat(#11): 생성 API 연결
oceanlee-seoul dce2356
✨ feat(#11): 모달 폼 디자인 수정 및 isEdit 프롭 추가
oceanlee-seoul 6b83265
Merge branch 'develop' into feature/newCardModal
oceanlee-seoul 22a0bdc
⚙️ chore(#11): react-datepicker 라이브러리 설치
oceanlee-seoul bdbe8fb
✨ feat(#11): 이미지 API 수정
oceanlee-seoul 7e91b2e
🗑 remove(#11): react-datepicker 제거
oceanlee-seoul c893d89
🛠 fix(#11): 코드 리뷰 반영
oceanlee-seoul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import Image from 'next/image'; | ||
|
|
||
| import getProfileColorStyle from '@/utils/getProfileColorStyle'; | ||
|
|
||
| export default function MemberProfile({ | ||
| userId, | ||
| nickname, | ||
| profileImageUrl, | ||
| }: { | ||
| userId: number; | ||
| nickname: string; | ||
| profileImageUrl: string | null; | ||
| }) { | ||
| return ( | ||
| <div className='flex items-center'> | ||
| <div | ||
| className='align-center relative mr-[10px] flex size-[26px] items-center justify-center rounded-full border-solid border-white' | ||
| style={profileImageUrl ? {} : getProfileColorStyle(userId)} | ||
| > | ||
| {profileImageUrl ? ( | ||
| <Image src={profileImageUrl} alt='프로필' fill style={{ objectFit: 'cover' }} className='rounded-full' /> | ||
| ) : ( | ||
| <p className={`font-montserrat font-semibold leading-6 text-white`}>{nickname.substring(0, 1)}</p> | ||
| )} | ||
| </div> | ||
| <p>{nickname}</p> | ||
| </div> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import MemberProfile from './MemberProfile'; | ||
|
|
||
| export default function MembersDropDown({ | ||
| members, | ||
| onSelectMember, | ||
| }: { | ||
| members: { | ||
| userId: number; | ||
| nickname: string; | ||
| profileImageUrl: string | null; | ||
| }[]; | ||
| onSelectMember: (userId: number) => void; | ||
| }) { | ||
| return ( | ||
| <ul className='absolute top-[110%] w-full rounded-[6px] border border-gray-d9 bg-white px-4 py-2'> | ||
| {members.map((member) => { | ||
| return ( | ||
| <li | ||
| className='flex cursor-pointer items-center rounded-[6px] px-[6px] py-[5px] text-[14px] transition-all hover:bg-violet-light-hover md:text-[16px]' | ||
| key={`member-${member.userId}`} | ||
| onClick={() => { | ||
| onSelectMember(member.userId); | ||
| }} | ||
| > | ||
| <MemberProfile userId={member.userId} nickname={member.nickname} profileImageUrl={member.profileImageUrl} /> | ||
| </li> | ||
| ); | ||
| })} | ||
| <li | ||
| className='flex cursor-pointer items-center rounded-[6px] px-[6px] py-[5px] text-[14px] text-gray-9f transition-all hover:bg-violet-light-hover md:text-[16px]' | ||
| onClick={() => { | ||
| onSelectMember(0); | ||
| }} | ||
| > | ||
| <p className='w-full text-center'>담당자 선택 안함</p> | ||
| </li> | ||
| </ul> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| export default function TagsWrapper({ tags, onTagClick }: { tags: string[]; onTagClick: (tag: string) => void }) { | ||
| return ( | ||
| <div className='mt-[10px] flex flex-wrap gap-[10px]'> | ||
| {tags.map((tag) => ( | ||
| <div | ||
| // 태그 컬러만 지정해주면 됨 | ||
| className='cursor-pointer text-nowrap rounded-[6px] border border-gray-d9 px-1' | ||
| key={`tag-${tag}-key`} | ||
| onClick={() => { | ||
| onTagClick(tag); | ||
| }} | ||
| > | ||
| {tag} | ||
| </div> | ||
| ))} | ||
| </div> | ||
| ); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
프로필 아이콘은 제가 크기만 클래스로 주면 되게 공용 컴포넌트 만들어뒀어요!