-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix: 포트폴리오 수정 로직 변경 * Fix: 수정시 portfolioType 정의하는 로직 변경 * Fix: 기본 동영상이 추가되는 문제 해결 * Fix: 케밥메뉴 팝업시 케밥버튼이 안가려지는 문제 해결 * Refactor: useUser hooks * Fix: getPortfolioType 로직 수정 * Feat: add filter type * Feat: 403 페이지 추가, 버튼 padding 수정 * Feat: 비공개 포트폴리오 403 이동 추가 * Fix: 403 redirect 제거 * Fix: 기본 동영상이 추가되는 문제 해결 * Fix: 케밥메뉴 팝업시 케밥버튼이 안가려지는 문제 해결 * Refactor: useUser hooks * Fix: CommentContent 컴포넌트 삭제 * Fix: 댓글 컴포넌트 재귀 구현 * Feat: 대댓글 컴포넌트에 !isReply 조건 추가 * Fix: z-100 제거 * Fix: 대댓글 replyList 조건 제거 * Fix: 댓글 케밥버튼 맨 위로 오도록 변경 * Feat: 케밥 바깥 클릭시 케밥 닫히는 이벤트 추가 * Fix: getVideoFileUid 기본값 삭제 * Fix: 포트폴리오 수정 데이터 변경 * Feat: portfolio props is403 추가 * Fix: 대댓글 map key 추가 * Feat: is403 추가 * Feat: useOutsideClick 추가 * e2e: 403 error test * Feat: 작성자만 조회할 수 있는 로직 추가 * Fix: 포트폴리오 검색SchoolGradeType 0 제거 * Fix: 프로필 페이지 로그인 조건 제거 * Feat: 테마별 삭제 * Feat: 검색 변수 구조 개선 * Fix: 정렬 기준 로직 수정 * Fix: 검색 필터 여러개 선택되는 버그 수정 * Fix: 정렬기준 전체 선택 로직 개선 * Fix: input 업데이트 안되는 문제 수정 * Fix: gradeType 0 제거 * Fix: 검색 테마 삭제 * Fix: user 변수명 수정 * Fix: 검색 레이아웃 overflow hidden 추가 * Fix: 검색 여러번 안되는 버그 수정, 검색 keyword 프로퍼티 이름 search로 변경 * Feat: filter 검색 키워드 기본값 추가 * Feat: theme 검색 추가 * Feat: ChipGroup이 skill 타입에 의존하지 않도록 수정 * Feat: type 상관없이 selected이면 배경 색 칠해지도록 수정 * Feat: skillList 컴포넌트 추가 * Feat: main, portfolio detail chip group 대신 SkillList쓰도록 수정 * Feat: upload select 로직을 Skills 안으로 주입 --------- Co-authored-by: J1min <[email protected]> Co-authored-by: Jimin Hong <[email protected]>
- Loading branch information
1 parent
1477ece
commit 7d9c62c
Showing
30 changed files
with
580 additions
and
426 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,17 +1,52 @@ | ||
import ChipGroup from "@/components/atoms/ChipGroup"; | ||
import ChipGroup, { ChipItem } from "@/components/atoms/ChipGroup"; | ||
import { Skill } from "@/types/skill.interface"; | ||
import { Dispatch, SetStateAction } from "react"; | ||
|
||
interface SkillsProps { | ||
className?: string; | ||
skills: Skill[]; | ||
selectedSkills: Skill[]; | ||
setSelectedSkills: (skill: Skill) => void; | ||
selectedSkills?: Skill[]; | ||
setSelectedSkills?: Dispatch<SetStateAction<Skill[]>>; | ||
} | ||
|
||
function SkillsView({ skills, ...props }: SkillsProps) { | ||
return <ChipGroup skillList={skills} type="upload" {...props} />; | ||
interface SkillsViewProps { | ||
items: ChipItem[]; | ||
className?: string; | ||
} | ||
|
||
function SkillsView({ ...props }: SkillsViewProps) { | ||
return <ChipGroup type="upload" {...props} />; | ||
} | ||
|
||
export default function Skills(props: SkillsProps) { | ||
return <SkillsView {...props} />; | ||
export default function Skills({ | ||
skills, | ||
selectedSkills, | ||
setSelectedSkills, | ||
...props | ||
}: SkillsProps) { | ||
return ( | ||
<SkillsView | ||
items={skills.map((skill) => ({ | ||
id: skill.skillId, | ||
label: skill.skillName, | ||
onClick: () => | ||
setSelectedSkills?.((originSelectedSkills) => { | ||
if ( | ||
originSelectedSkills.find( | ||
(selectedSkill) => selectedSkill.skillId === skill.skillId, | ||
) | ||
) { | ||
return originSelectedSkills.filter( | ||
(v) => v.skillId !== skill.skillId, | ||
); | ||
} | ||
return [...originSelectedSkills, skill]; | ||
}), | ||
selected: selectedSkills?.some( | ||
(selectedSkill) => selectedSkill.skillId === skill.skillId, | ||
), | ||
}))} | ||
{...props} | ||
/> | ||
); | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
7d9c62c
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.
Successfully deployed to the following URLs:
bssm-portfolio – ./
bssm-portfolio-bssm-portfolio.vercel.app
bssm-portfolio-git-main-bssm-portfolio.vercel.app
bssm-portfolio.vercel.app