Skip to content
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

Merged
merged 7 commits into from
Jan 23, 2025
Merged

[Feat] 글 수정하기 API 구현 #124

merged 7 commits into from
Jan 23, 2025

Conversation

imddoy
Copy link
Collaborator

@imddoy imddoy commented Jan 22, 2025

📑 이슈 번호


✨️ 작업 내용


💙 코멘트

민이 코드 가져와서 새로 구현했습니당
공통 로직을 조금 건드렸는데 확인해주세용........


📸 구현 결과

@imddoy imddoy self-assigned this Jan 22, 2025
Copy link

🚀 Storybook 배포가 완료되었습니다! 🔗 https://6779addaee273bbd1faef48a-yugltzbxid.chromatic.com/

Copy link
Collaborator

@shroqkf shroqkf left a comment

Choose a reason for hiding this comment

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

글 수정하기 피그마에도 없는데 뚝딱 구현한 또이 잘했어잘했어요🤤💓

Copy link
Collaborator

Choose a reason for hiding this comment

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

p5: toolState 관리 로직을 커스텀 훅으로 분리할 수 있을 것 같은데 .. 어렵다

Copy link
Member

@gonn-i gonn-i left a comment

Choose a reason for hiding this comment

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

body랑 img 도 나눠주고! 아주 좋네요 채현이 빨리 자자 제발 ㅠ

Comment on lines 16 to 28
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,
};
Copy link
Member

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);
    }
  }, []);

@imddoy imddoy merged commit e716edd into develop Jan 23, 2025
1 check passed
Copy link

🚀 Storybook 배포가 완료되었습니다! 🔗 https://6779addaee273bbd1faef48a-bibodtmmvr.chromatic.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 커뮤니티 글 수정 구현
3 participants