Skip to content

Commit d8d2636

Browse files
refactor: 홈 페이지 로그아웃 버튼 삭제
1 parent b269f5d commit d8d2636

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/app/(home)/components/RoutineList.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -151,19 +151,6 @@ const RoutineList = ({ routineList }: { routineList: RoutineDto[] }) => {
151151
)}
152152
</div>
153153
</Drawer>
154-
<button
155-
onClick={() => signOut({ callbackUrl: '/' })}
156-
style={{
157-
padding: '10px 20px',
158-
backgroundColor: '#ff4757',
159-
color: '#fff',
160-
border: 'none',
161-
borderRadius: '5px',
162-
cursor: 'pointer',
163-
}}
164-
>
165-
로그아웃
166-
</button>
167154
</div>
168155
</>
169156
);

src/app/(home)/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import { signOut } from 'next-auth/react';
1010
export const revalidate = 0;
1111
export default async function Home() {
1212
const session = await auth();
13-
console.log(session);
14-
console.log(session?.nickname);
1513
if (!session?.user.name) {
1614
redirect('/sign');
1715
}

0 commit comments

Comments
 (0)