-
Notifications
You must be signed in to change notification settings - Fork 44
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
[week 11] 이현승 #351
The head ref may contain hidden characters: "part2-\uC774\uD604\uC2B9-week8"
[week 11] 이현승 #351
Conversation
}, []); | ||
|
||
return ( | ||
<Modal> |
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.
Modal 컴포넌트를 만들어서 children으로 컨텐츠를 받아서 작업하신 것 잘하셨습니다!
{deleteFolder && ( | ||
<ModalDeleteFolder info={selectedFolder?.name} onClick={handleDel} /> | ||
)} | ||
{nameChange && <ModalEdit onClick={handleChange} />} |
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.
onClick props 보다는 onCloseButtonClick 이 더 명확할 것 같습니다~!
`; | ||
|
||
const ModalFrame = ({ children, name, onClick }) => { | ||
useEffect(() => { |
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 [selectedFolder, setSelectedFolder] = useState(null); | ||
|
||
const selectFolder = (e) => { | ||
const folderId = Number(e.target.name); |
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.
typeof 를 통해서도 처리할 수 있을 것 같습니다~!
요구사항
기본
심화
없음
주요 변경사항
스크린샷
멘토에게