Skip to content

Commit

Permalink
refactor: build 문제 해결을 위한 문제 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hozzijeong committed Oct 12, 2023
1 parent 9d8ad24 commit e194d77
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 167 deletions.
43 changes: 0 additions & 43 deletions frontend/src/hooks/@common/usePushAlert.ts

This file was deleted.

87 changes: 0 additions & 87 deletions frontend/src/hooks/queries/auth/useWebPush.ts

This file was deleted.

38 changes: 1 addition & 37 deletions frontend/src/pages/auth/MyPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,9 @@ import { FixedButtonArea } from 'pages/garden/GardenPostList/GardenPostList.styl
import ContentHeader from 'components/@common/ContentHeader';
import Navbar from 'components/@common/Navbar';
import SvgFill from 'components/@common/SvgIcons/SvgFill';
import Toggle from 'components/@common/Toggle';
import VerticalDivider from 'components/@common/VerticalDivider/VerticalDivider.style';
import {
BottomSheet,
Button,
ButtonBox,
Wrapper,
PushAlertWrapper,
PushAlertContent,
WarnParagraph,
} from './MyPage.style';
import { BottomSheet, Button, ButtonBox, Wrapper } from './MyPage.style';
import useConfirm from 'hooks/@common/useConfirm';
import usePushAlert from 'hooks/@common/usePushAlert';
import useCheckSessionId from 'hooks/queries/auth/useCheckSessionId';
import useLogout from 'hooks/queries/auth/useLogout';
import useWithdraw from 'hooks/queries/auth/useWithdraw';
Expand All @@ -25,9 +15,6 @@ const MyPage = () => {
const { mutate: logoutMutate } = useLogout();
const { mutate: withdrawMutate } = useWithdraw();

// const { currentSubscribe, pushSupport, notificationDenied, subscribeAlert, unSubscribeAlert } =
// usePushAlert();

const confirm = useConfirm();

const handleLogout: React.MouseEventHandler<HTMLButtonElement> = () => {
Expand All @@ -42,33 +29,10 @@ const MyPage = () => {
}
};

// const {
// data: { isSubscribe },
// } = currentSubscribe;

return (
<>
<ContentHeader title="마이페이지" />
<Wrapper>
{/* <PushAlertWrapper>
<PushAlertContent>
<p>리마인더 알림 받기</p>
<Toggle
width={45}
height={20}
toggleOnCallback={subscribeAlert}
toggleOffCallback={unSubscribeAlert}
state={isSubscribe}
disabled={!pushSupport || notificationDenied === 'denied'}
/>
</PushAlertContent>
{!pushSupport && <WarnParagraph>지원하지 않는 브라우저 또는 os입니다.</WarnParagraph>}
{notificationDenied === 'denied' && (
<WarnParagraph>
브라우저 알림을 허용하지 않았습니다. 허용하기 위해서는 설정 {'>'} 알림 허용을 해주세요
</WarnParagraph>
)}
</PushAlertWrapper> */}
<ButtonBox>
<Button type="button" onClick={handleLogout}>
로그아웃
Expand Down

0 comments on commit e194d77

Please sign in to comment.