-
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: 연구 결과 피드백 없을 때 마크업 #492
feat: 연구 결과 피드백 없을 때 마크업 #492
Conversation
import { HEAD_2_BOLD } from '~/styles/typo'; | ||
|
||
const ResultBasePage: FC = () => { | ||
const { data, isLoading } = useGetSurveyIdByUserStatus(); |
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.
요 훅 내부적으로 유저 상태를 enabled 옵션으로 쓰더라구요 ~
useEffect( | ||
function replaceWhenHasFeedback() { | ||
if (!data) return; | ||
if (data.all_feedback_count > 0) router.replace('/result'); | ||
}, | ||
[data, router], | ||
); |
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.
수고하셨습니다~
76ba457
into
feature/survey-base/handle-created-survey
* feat: 설문이 있을 때 핸들링 * feat: 연구 결과 피드백 없을 때 마크업 (#492) * chore: 결과 베이스 이미지 * feat: mobile header props 뚫기 * feat: 결과 베이스
🤔 해결하려는 문제가 무엇인가요?
요거 만들어야돼용
🎉 변경 사항
MobileHeader
에서 사이드 메뉴바를 감출 수 있는 prop을 뚫었어용