diff --git a/frontend/src/components/Home/index.tsx b/frontend/src/components/Home/index.tsx index 23396de..15adaf4 100644 --- a/frontend/src/components/Home/index.tsx +++ b/frontend/src/components/Home/index.tsx @@ -10,6 +10,7 @@ interface HomeProps { export default function Home({ isLoggedIn = false, setIsLoggedIn }: HomeProps) { // eslint-disable-next-line @typescript-eslint/no-unused-vars const [selectedWorkspace, setSelectedWorkspace] = useState(''); + const [loggedIn, setLoggedIn] = useState(isLoggedIn); const workspaces = [ { id: 1, name: 'Workspace 1' }, @@ -19,6 +20,7 @@ export default function Home({ isLoggedIn = false, setIsLoggedIn }: HomeProps) { const handleGoogleSignIn = () => { console.log('구글로 계속하기'); + setLoggedIn(true); // 임시 코드 if (setIsLoggedIn) { setIsLoggedIn(true); } @@ -45,7 +47,7 @@ export default function Home({ isLoggedIn = false, setIsLoggedIn }: HomeProps) {

- {!isLoggedIn ? ( + {!loggedIn ? (