diff --git a/src/components/pages/MainPage/MainPage.tsx b/src/components/pages/MainPage/MainPage.tsx index bfe5242..0436b75 100644 --- a/src/components/pages/MainPage/MainPage.tsx +++ b/src/components/pages/MainPage/MainPage.tsx @@ -4,6 +4,8 @@ import { Txt, colors } from '@uoslife/design-system/web'; import useUserStore from '../../../store/user'; import Icon from '../../atoms/Icon'; import useHandleClearIcon from '../../../hooks/useHandleClearIcon'; +import { useEffect } from 'react'; +import uoslifeBridge from '../../../bridge'; type Props = { setTimelineView: () => void }; @@ -12,6 +14,15 @@ const MainPage = ({ setTimelineView }: Props) => { const handleClickClearIcon = useHandleClearIcon(); + useEffect(() => { + if (user?.isVerified === false) { + alert('포털연동 후 이용해주세요'); + (async () => { + await uoslifeBridge.goBack(); + })(); + } + }, []); + return (