diff --git a/src/App.tsx b/src/App.tsx index e30b461..3389d7b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ import axios from 'axios'; -import React, { useEffect } from 'react'; +import React, { useEffect, useState } from 'react'; import ReactGA from 'react-ga4'; import { useDispatch } from 'react-redux'; import { useLocation, Outlet } from 'react-router-dom'; @@ -14,9 +14,7 @@ import { setIsPortrait, setSemesters, setTracks, setUser } from '@/redux/actions const App: React.FC = () => { const dispatch = useDispatch(); const location = useLocation(); - const [popupOpen, setPopupOpen] = React.useState( - localStorage.getItem(STORAGE_KEY) !== CAMPAIGN_KEY, - ); + const [popupOpen, setPopupOpen] = useState(localStorage.getItem(STORAGE_KEY) !== CAMPAIGN_KEY); const portraitMediaQuery = window.matchMedia('(max-aspect-ratio: 4/3)'); useEffect(() => { @@ -107,7 +105,7 @@ const App: React.FC = () => {
- setPopupOpen(state)}> + setPopupOpen(false)} /> { diff --git a/src/redux/index.ts b/src/redux/index.ts index f543ff4..17c52e8 100644 --- a/src/redux/index.ts +++ b/src/redux/index.ts @@ -1,10 +1,10 @@ import { combineReducers } from 'redux'; -import dictionaryReducer from '@/redux/reducers/dictionary/index'; -import timetableReducer from '@/redux/reducers/timetable/index'; -import writeReviewsReducer from '@/redux/reducers/write-reviews/index'; -import commonReducer from '@/redux/reducers/common/index'; -import plannerReducer from '@/redux/reducers/planner/index'; +import dictionaryReducer from '@/redux/reducers/dictionary'; +import timetableReducer from '@/redux/reducers/timetable'; +import writeReviewsReducer from '@/redux/reducers/write-reviews'; +import commonReducer from '@/redux/reducers/common'; +import plannerReducer from '@/redux/reducers/planner'; const rootReducer = combineReducers({ common: commonReducer,