Skip to content

Commit

Permalink
[#66] userID 의존 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
dewy-i committed Aug 8, 2021
1 parent c66aa22 commit e1fc07d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/views/timetable/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useEffect, useState } from 'react';
import { Redirect } from 'react-router';
import { useRecoilValue } from 'recoil';
import { Box, Button, Container, makeStyles } from '@material-ui/core';
import { currentTimetableIndexState, timetableListState } from '@states/Timetable';
Expand All @@ -19,15 +18,9 @@ export default function Home() {
const classes = useStyles();

useEffect(() => {
if (!localStorage.getItem('userID')) return;

fetchTimetables();
}, []);

if (!localStorage.getItem('userID')) {
return <Redirect to="/login" />;
}

return (
<Container className={classes.root}>
<SearchBar />
Expand Down

0 comments on commit e1fc07d

Please sign in to comment.