Skip to content

Commit

Permalink
feat: 주소 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
leejuhi committed Jan 31, 2025
1 parent dee2925 commit a85b9d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { css } from "@emotion/css";
import NavBar from "../components/navBar/navBar.tsx";
import monkey from "/monkey.svg";
import { getToken } from "../utils/jwt.ts";
import { useNavigate } from "react-router-dom";
import { useEffect } from "react";
const HomePage = () => {
const navigate = useNavigate();
useEffect(() => {
if (getToken()) {
navigate("/book");
}
navigate("/login");
}, []);

return (
Expand Down

0 comments on commit a85b9d3

Please sign in to comment.