-
Notifications
You must be signed in to change notification settings - Fork 0
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
마을 기사 읽기 페이지 UI작업 #107
마을 기사 읽기 페이지 UI작업 #107
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/components/Headline.tsx
Outdated
viewCount: number; | ||
source: string; | ||
uploadDate?: string; | ||
viewCount?: number; |
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.
혹시 uploadDate
와 viewCount
가 마을에서는 필수가 아닌가요?!
필수라고 생각했어서 여쭤봅니다~!~!
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.
흠흠쓰 필수로 하겠습니다!! 어제 새벽에 짜서 ㅋㅋㅋㅋㅋ 약간 좀잡을 수 없네요
src/app/village/[id]/page.tsx
Outdated
<Box sx={{ marginTop: -2 }}> | ||
<KakaoMap villages={[village]} /> | ||
</Box> |
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.
흠흠쓰... 일단 한번 수정해보고 판단하개보겠습니다!!!!
src/app/village/[id]/page.tsx
Outdated
import hiddenGems from '@/mocks/villages'; | ||
|
||
const Page = async ({ params }: { params: { id: number } }) => { | ||
const village = hiddenGems[params.id]; |
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.
데이터가 id
는 1부터 시작인데 배열 형태로 쓰셔서 인덱스가 이상하게 잡히네요!
hiddenGems[params.id - 1]
해주셔야 될 것 같아요~!
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.
src/app/village/[id]/page.tsx
Outdated
import color from '@/constants/color'; | ||
import hiddenGems from '@/mocks/villages'; | ||
|
||
const Page = async ({ params }: { params: { id: number } }) => { |
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.
Client components cannot be async functions.
라고 합니다!!
async
빼주세요~!
관련 이슈
작업 요약
작업 상세 설명
리뷰 요구 사항
미리 보기