Skip to content

Commit

Permalink
feat: 포털연동하지 않은 유저 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbae0 committed Jan 29, 2024
1 parent b5322f5 commit 529b5c2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/pages/MainPage/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand All @@ -12,6 +14,15 @@ const MainPage = ({ setTimelineView }: Props) => {

const handleClickClearIcon = useHandleClearIcon();

useEffect(() => {
if (user?.isVerified === false) {
alert('포털연동 후 이용해주세요');
(async () => {
await uoslifeBridge.goBack();
})();
}
}, []);

return (
<S.Container>
<Icon
Expand Down

0 comments on commit 529b5c2

Please sign in to comment.