Skip to content

Commit

Permalink
Merge pull request #110 from Hanaemong/#109
Browse files Browse the repository at this point in the history
[fix] 파일 업로드 테스트 2
  • Loading branch information
abcxj123 authored Jul 8, 2024
2 parents 8e50cab + fcc4693 commit 231e7b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { useNavigate } from "react-router-dom";
import { useEffect } from "react";
import { getCookie } from "../utils/cookie";

const Landing = () => {
const navigate = useNavigate();

useEffect(() => {
const timeout = setTimeout(() => {
// if (getCookie("phone")) {
// navigate("/login");
// } else {
// navigate("/join");
// }
navigate("/create-Team");
if (getCookie("phone")) {
navigate("/login");
} else {
navigate("/join");
}
}, 3000);
return () => {
clearTimeout(timeout);
Expand Down

0 comments on commit 231e7b4

Please sign in to comment.