Commit 0bb094af authored by Kim, Subin's avatar Kim, Subin
Browse files

impoer .js 삭제

parent 9ad05544
import Menu from "../components/Menu/Menu.js"; import Menu from "../components/Menu/Menu";
import Monthly from "../components/Calendar/Monthly.js"; import Monthly from "../components/Calendar/Monthly";
import Footer from "../components/Footer.js"; import Footer from "../components/Footer";
const HomePage = () => { const HomePage = () => {
return ( return (
......
import { Link } from 'react-router-dom';
import LoginForm from '../components/Form/LoginForm'; import LoginForm from '../components/Form/LoginForm';
import { useAuth } from "../utils/context";
function LoginPage() { function LoginPage() {
const { user } = useAuth()
console.log("LoginPage",user)
return ( return (
<> <>
<div className="py-5"> <div className="py-5">
...@@ -12,7 +8,6 @@ function LoginPage() { ...@@ -12,7 +8,6 @@ function LoginPage() {
<p className="ms-4">-일정관리앱</p> <p className="ms-4">-일정관리앱</p>
</div> </div>
<LoginForm /> <LoginForm />
<Link to="/home">asda</Link>
</> </>
); );
} }
......
import ScheduleForm from "../components/Form/ScheduleForm.js"; import ScheduleForm from "../components/Form/ScheduleForm";
const ScheduleEditPage = () => { const ScheduleEditPage = () => {
return ( return (
......
import Menu from "../components/Menu/Menu.js"; import Menu from "../components/Menu/Menu";
import HomeBtn from "../components/Buttons/HomeBtn.js"; import HomeBtn from "../components/Buttons/HomeBtn";
import DateView from "../components/Calendar/DateView.js"; import DateView from "../components/Calendar/DateView";
import Footer from "../components/Footer.js"; import Footer from "../components/Footer";
const SchedulePage = () => { const SchedulePage = () => {
return ( return (
......
import BackBtn from "../components/Buttons/BackBtn.js"; import BackBtn from "../components/Buttons/BackBtn";
import SignupForm from '../components/Form/SignupForm'; import SignupForm from '../components/Form/SignupForm';
import { useAuth } from "../utils/context";
function SingupPage() { function SingupPage() {
const { user } = useAuth()
console.log("Signup user",user)
return ( return (
<> <>
<BackBtn /> <BackBtn />
......
import StudyPlanEditForm from "../components/Form/StudyPlanEditForm.js" import StudyPlanEditForm from "../components/Form/StudyPlanEditForm"
const StudyPlanEditPage = () => { const StudyPlanEditPage = () => {
return ( return (
......
import Menu from "../components/Menu/Menu.js"; import Menu from "../components/Menu/Menu";
import HomeBtn from "../components/Buttons/HomeBtn.js"; import HomeBtn from "../components/Buttons/HomeBtn";
import StudyPlanList from "../components/StudyPlanList.js"; import StudyPlanList from "../components/StudyPlanList";
const StudyPlanListPage = () => { const StudyPlanListPage = () => {
return ( return (
......
import { useParams } from "react-router-dom"; import { useParams } from "react-router-dom";
import Menu from "../components/Menu/Menu.js"; import Menu from "../components/Menu/Menu";
import BackBtn from "../components/Buttons/BackBtn.js"; import BackBtn from "../components/Buttons/BackBtn";
import Footer from "../components/Footer.js"; import Footer from "../components/Footer";
import AddplanList from "../components/StudyPlan/AddplanList.js"; import AddplanList from "../components/StudyPlan/AddplanList";
const StudyPlanPage = () => { const StudyPlanPage = () => {
const { subjectId } = useParams(); const { subjectId } = useParams();
......
import SubjectForm from "../components/Form/SubjectForm.js" import SubjectForm from "../components/Form/SubjectForm"
const SubjectEditPage = () => { const SubjectEditPage = () => {
return ( return (
......
import Menu from "../components/Menu/Menu.js"; import Menu from "../components/Menu/Menu";
import HomeBtn from "../components/Buttons/HomeBtn.js"; import HomeBtn from "../components/Buttons/HomeBtn";
import Weekly from "../components/Calendar/Weekly.js"; import Weekly from "../components/Calendar/Weekly";
import TodoList from "../components/TodoList.js"; import TodoList from "../components/TodoList";
import Footer from "../components/Footer.js"; import Footer from "../components/Footer";
const ToDoPage = () => { const ToDoPage = () => {
return ( return (
......
export function getLoggedIn() {
const loggedData = localStorage.getItem("login");
let loggedIn = null;
if (loggedData) {
// loggedIn = JSON.parse(loggedData);
loggedIn = loggedData
}
return loggedIn;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment