Closed github-actions[bot] closed 1 year ago
window.alert("탈퇴되셨습니다.");
sessionStorage.removeItem("id");
navigate("/");
window.location.reload();
https://api.github.com/Yana94Ko/cuokkaMap/blob/ea2071a5161c2c703c076bd114ad5c6993a7617f/src/main/webapp/src/components/home/header/MyPageList.tsx#L119
} else return; } } const onSecessionClick = () => { const result = window.confirm("지금 탈퇴하시면 추가하신 즐겨찾기, 후기, 사진 등 정보가 모두 삭제되며, 복구 불가능합니다." + "\n" + "정말 탈퇴하시겠습니까?"); if (result) { // TODO(FE): 탈퇴 api 연동하기 // assignees: hwanyb // window.alert("탈퇴되셨습니다."); // sessionStorage.removeItem("id"); // navigate("/"); // window.location.reload(); } else return; } return ( <Base location={location.pathname}> { isLoggedin ? ( location.pathname === "/mypage" ? ( <List onClick={onItemClick}> <Item className="myPageList" onClick={onLogoutClick}>로그아웃</Item> <StyledA href="https://tough-dietician-fdf.notion.site/907b20e0956443a589d6ec3a041457cb" target="_blank"> <Item className="myPageList">고객센터</Item> </StyledA> <Item id="secession" className="myPageList" onClick={onSecessionClick}>회원탈퇴</Item> </List> ) : ( <List onClick={onItemClick}> <Item className="myPageList" id="favorite">내 즐겨찾기</Item> <Item className="myPageList" id="photo">내 사진</Item> <Item className="myPageList" id="review">내 후기</Item> <StyledA href="https://tough-dietician-fdf.notion.site/907b20e0956443a589d6ec3a041457cb" target="_blank"> <Item className="myPageList">고객센터</Item> </StyledA> <Item className="myPageList" onClick={onLogoutClick}>로그아웃</Item> </List> ) ) : ( <List> <Item className="myPageList" onClick={() => dispatch(setIsOpenedLoginModal(true))}>로그인</Item>
Closed in cc664791ebc03bdb242b30537aff851e1b318a91
window.alert("탈퇴되셨습니다.");
sessionStorage.removeItem("id");
navigate("/");
window.location.reload();
https://api.github.com/Yana94Ko/cuokkaMap/blob/ea2071a5161c2c703c076bd114ad5c6993a7617f/src/main/webapp/src/components/home/header/MyPageList.tsx#L119