-
Notifications
You must be signed in to change notification settings - Fork 3
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: 하단 바 추가 #484
feat: 하단 바 추가 #484
Conversation
Bundle SizesCompared against 2702658
Dynamic import: No significant changes found |
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.
아이콘들의 props를 다른 컴포넌트 처럼
ComponentProps<typeof Svg>
요롷게 해주시면 확장해서 쓰기 편할 거 같은데 어떻게 생각하세용?!?!
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 onHomeClick = () => { | ||
router.push('/gallery'); | ||
}; | ||
|
||
const onQuestionClick = () => { | ||
router.push('/survey/create'); | ||
}; | ||
|
||
const onMyCardClick = () => { | ||
router.push(`/dna/${data?.survey_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.
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.
빠른 구현 감사합니다 🙇♀️
/gallery
->/
경로 변경 부탁드립니다!
const onQuestionClick = () => { | ||
router.push('/survey/create'); | ||
}; |
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.
설문지를 이미 만든 사용자는 내 연구결과
-> /result
페이지로 이동되어야할 것 같습니다!
const onHomeClick = () => { | ||
router.push('/gallery'); | ||
}; |
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.
이후에 /gallery
경로의 페이지가 없어지고
갤러리 화면이 /
경로로 변경될 예정이여서, /
경로로 바꿔주세요!
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.
이거 루트가 갤러리가 되는 이유는 뭐지 ??? @sumi-0011
시간 간단히 잡아서 싱크업해도 좋을듯??
const { isLoading, data } = useGetSurveyIdByUserStatus({ | ||
onError: () => { | ||
fireToast({ content: '문제가 발생했어요. 다시 시도해 주세요.' }); | ||
router.push('/'); | ||
}, | ||
}); | ||
|
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.
statue가 로그인 상태일 때만 쿼리가 실행되도록 해도 좋지않을까요?
enabled
옵션으로요!
return ( | ||
<footer css={BottomBarCss(theme)}> | ||
<button type="button" css={IconBoxCss(theme, '/gallery' === currentPath)} onClick={onHomeClick}> | ||
<HomeIcon color={'/gallery' === currentPath ? `${theme.colors.primary_300}` : `${theme.colors.gray_300}`} /> |
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.
여기도 /gallery
가 아닌 /
으로 변경 부탁드려요!
저도 /gallery
페이지를 빠르게 제거해볼게요!
* feat: �질문 폼 베이스 * refactor: bottom bar
🤔 해결하려는 문제가 무엇인가요?
🎉 변경 사항
🙏 여기는 꼭 봐주세요!
🌄 스크린샷