-
Notifications
You must be signed in to change notification settings - Fork 6
Feat : 모달 UI 구현 #25
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
Feat : 모달 UI 구현 #25
Conversation
mungyun
left a comment
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.
고생하셨씁니다~
| } | ||
| const FolderItem = ({ index, item }: { index: number; item: ItemType }) => { | ||
| const [selected, setSelected] = useState(false); | ||
| const bgColor = index % 2 === 0 ? "bg-white" : "bg-[#F0F6FF]"; |
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.
색상 커스텀해서 사용해주세요!
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.
반영했습니다
| {list.map((item, index) => ( | ||
| <FolderItem key={item.id} item={item} index={index} /> |
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.
index 속성이 꼭 필요한가요??
99minji
left a comment
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.
고생하셨습니다!
공유 사항
react-icon 라이브러리를 추가했습니다
: svg 이미지를 import 해서 컴포넌트로 사용
작업 내용
모달 UI 구현
단순 UI만 구현했고 열고 닫는 기능이나 세부 데이터 받아오는 로직은 구현하지 않았습니다
폴더 경로 참조
모달 종류
사용 예시 test/index.tsx 파일 참조
localhost:3000/test (모든 모달이 겹쳐있는 상태입니다ㅎ )