Skip to content

Commit

Permalink
Chore: 이미 해결한 TODO 주석 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
soulchicken authored and MustSave committed Nov 20, 2023
1 parent 460545d commit a234996
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 15 deletions.
2 changes: 0 additions & 2 deletions src/components/account/ToForgetPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import color from '@/styles/color';
import LinkWrapper from '@/components/common/link/LinkWrapper';

const ToForgetPassword = () => (
// TODO: 비밀번호 찾기 페이지 구현하고 라우팅해야함
<div css={textCSS}>
<LinkWrapper linkUrl="/chats/0">
{/* Forget password? */}
바로 영준이랑 대화하기
</LinkWrapper>
</div>
Expand Down
2 changes: 0 additions & 2 deletions src/components/common/bottomNavBar/BottomNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ const BottomNavBar: FC<NavProps> = ({ pageName }) => {
<HomeIcon color={homeColor} />
Friends
</NavButtonWrapper>

{/* TODO: 커뮤니티, 프로필 페이지 제작을 해야함 */}
<NavButtonWrapper color={chatColor} linkUrl="/chats">
<ChatIcon color={chatColor} />
Chat
Expand Down
1 change: 0 additions & 1 deletion src/components/community/CommunityHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const CommunityHeader = () => {
}, [characterId]);
return (
<header css={headerCSS}>
{/* TODO: 캐릭터의 정보, 이미지가 필요합니다. */}
<span css={characterInfoCSS}>
{
characterInfo
Expand Down
1 change: 0 additions & 1 deletion src/components/community/PostHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const PostHeader = () => {
}, [characterId]);
return (
<header css={headerCSS}>
{/* TODO: 캐릭터의 정보, 이미지가 필요합니다. */}
<span css={characterInfoCSS}>
{
characterInfo
Expand Down
9 changes: 4 additions & 5 deletions src/components/profile/UserRouteButtons.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import { css } from '@emotion/react';
import color from '@/styles/color';
import { signOut } from 'next-auth/react';
import { signOut, useSession } from 'next-auth/react';
import Toast from '@/components/common/toast/Toast';
import { useState } from 'react';
import { logOutAPI } from '@/utils/api/accounts';
import LogOutIcon from '../icons/LogoutIcon';
import ProfileSettingIcon from '../icons/ProfileSettingIcon';

const ProfileRouteButtons = () => {
const [toastMessage, setToastMessage] = useState('');

// TODO: 미들웨어로 로그인 여부를 컨트롤할 예정
// TODO: 백엔드 로그아웃 로직이 변경되고 있는 중이라 아직 쓸 수 없는 코드가 있음
// const { data: session }: any = useSession();
const { data: session }: any = useSession();
const signOutHandler = () => {
// logOutAPI(session?.accessToken);
logOutAPI(session?.accessToken);
signOut({ callbackUrl: '/' });
};

Expand Down
2 changes: 0 additions & 2 deletions src/utils/api/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ export const refreshAccessToken = async (refreshToken: string) => {
};

export const logOutAPI = async (refreshToken: string) => {
// TODO: 백엔드 로그아웃 로직이 바뀌는 중
console.log(refreshToken);
const result = await ssrInstance.post('members/logout', { refreshToken });
return result.data;
};
2 changes: 0 additions & 2 deletions src/utils/services/chats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ const getHistory: GetHistory = async (setLoading, characterId, characterName, in
initChatContents(history);
};

// TODO: history 관련 service 레이어 함수가 더 많아지면 아래 eslint 막은 것 풀기
// eslint-disable-next-line import/no-anonymous-default-export
export default getHistory;

0 comments on commit a234996

Please sign in to comment.