Skip to content

Conversation

@hongggyelim
Copy link
Collaborator

@hongggyelim hongggyelim commented Nov 7, 2024

공유 사항

react-icon 라이브러리를 추가했습니다
: svg 이미지를 import 해서 컴포넌트로 사용

작업 내용

모달 UI 구현

단순 UI만 구현했고 열고 닫는 기능이나 세부 데이터 받아오는 로직은 구현하지 않았습니다

폴더 경로 참조

  • modal/modalComponents - 모달 내부 컴포넌트
  • modal - 완성된 모달 컴포넌트 (개별 파일)

모달 종류

  • 폴더 추가
  • 폴더 이름 변경
  • 폴더에 추가
  • 폴더 공유
  • 폴더 삭제
  • 링크 삭제

사용 예시 test/index.tsx 파일 참조
localhost:3000/test (모든 모달이 겹쳐있는 상태입니다ㅎ )

@hongggyelim hongggyelim self-assigned this Nov 7, 2024
Copy link
Contributor

@mungyun mungyun left a comment

Choose a reason for hiding this comment

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

고생하셨씁니다~

}
const FolderItem = ({ index, item }: { index: number; item: ItemType }) => {
const [selected, setSelected] = useState(false);
const bgColor = index % 2 === 0 ? "bg-white" : "bg-[#F0F6FF]";
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
Collaborator Author

Choose a reason for hiding this comment

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

반영했습니다

Comment on lines 17 to 18
{list.map((item, index) => (
<FolderItem key={item.id} item={item} index={index} />
Copy link
Contributor

Choose a reason for hiding this comment

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

index 속성이 꼭 필요한가요??

Copy link
Collaborator

@99minji 99minji left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

@mungyun mungyun merged commit d3fb45c into develop Nov 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants