Skip to content

Commit

Permalink
fix: AuthLayout 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
xodms0309 committed Sep 14, 2023
1 parent 73c8987 commit c956881
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/components/Layout/AuthLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import type { PropsWithChildren } from 'react';
import { Navigate } from 'react-router-dom';

import { PATH } from '@/constants/path';
import { useMemberQuery } from '@/hooks/queries/members';

const AuthLayout = ({ children }: PropsWithChildren) => {
interface AuthLayoutProps {
children: JSX.Element;
}

const AuthLayout = ({ children }: AuthLayoutProps) => {
const { data: member } = useMemberQuery();

if (!member) {
Expand Down

0 comments on commit c956881

Please sign in to comment.