-
Notifications
You must be signed in to change notification settings - Fork 2
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] 글 수정하기 API 구현 #124
[Feat] 글 수정하기 API 구현 #124
Conversation
🚀 Storybook 배포가 완료되었습니다! 🔗 https://6779addaee273bbd1faef48a-yugltzbxid.chromatic.com/ |
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.
p5: toolState 관리 로직을 커스텀 훅으로 분리할 수 있을 것 같은데 .. 어렵다
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.
body랑 img 도 나눠주고! 아주 좋네요 채현이 빨리 자자 제발 ㅠ
const post = { | ||
boardId: 136, | ||
toolName: 'Suno', | ||
toolLogo: 'https://daruda.s3.ap-northeast-2.amazonaws.com/SunoAi+1.svg', | ||
author: '또이또이또이', | ||
title: 'ㄴㅇ', | ||
content: 'ㄴㅇㄴㅇ', | ||
images: ['https://t4.ftcdn.net/jpg/01/43/42/83/360_F_143428338_gcxw3Jcd0tJpkvvb53pfEztwtU9sxsgT.jpg'], | ||
isScraped: false, | ||
updatedAt: '2025.01.22', | ||
commentCount: 0, | ||
toolId: null, | ||
}; |
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.
p5: navigate에서 state를 post로 전달했습니다! 싹 긁어서 사용해줘요잉 🫶 우리 채현이 빨리 자자
const location = useLocation();
useEffect(() => {
if (location.state.post) {
set히히히히상태관리(location.state.post);
}
}, []);
🚀 Storybook 배포가 완료되었습니다! 🔗 https://6779addaee273bbd1faef48a-bibodtmmvr.chromatic.com/ |
📑 이슈 번호
✨️ 작업 내용
💙 코멘트
민이 코드 가져와서 새로 구현했습니당
공통 로직을 조금 건드렸는데 확인해주세용........
📸 구현 결과