From 327e1e10d41e80021ef07f58f3459767491fb76b Mon Sep 17 00:00:00 2001 From: luckylooky2 Date: Mon, 20 Mar 2023 01:00:46 +0900 Subject: [PATCH] #14 fix : location of redux --- front/src/App.tsx | 58 +++++++++++++++++++++------------------------ front/src/index.tsx | 18 ++++++++------ 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/front/src/App.tsx b/front/src/App.tsx index 42532a4..7f9d5a9 100644 --- a/front/src/App.tsx +++ b/front/src/App.tsx @@ -7,8 +7,6 @@ import instance from "api/api"; import NavBar from "components/common/NavBar"; import { Box } from "@mui/material"; import UserService from "api/UserService"; -import { Provider } from "react-redux"; -import store from "components/common/store"; import { useDispatch } from "react-redux"; const App = (): JSX.Element => { @@ -31,35 +29,33 @@ const App = (): JSX.Element => { loadUserData(); return ( - - - - - - - } /> - } /> - - - - - + + + + + + } /> + } /> + + + + ); }; export default App; diff --git a/front/src/index.tsx b/front/src/index.tsx index 032464f..5d7882f 100644 --- a/front/src/index.tsx +++ b/front/src/index.tsx @@ -1,15 +1,19 @@ -import React from 'react'; -import ReactDOM from 'react-dom/client'; -import './index.css'; -import App from './App'; -import reportWebVitals from './reportWebVitals'; +import React from "react"; +import ReactDOM from "react-dom/client"; +import "./index.css"; +import App from "./App"; +import reportWebVitals from "./reportWebVitals"; +import { Provider } from "react-redux"; +import store from "components/common/store"; const root = ReactDOM.createRoot( - document.getElementById('root') as HTMLElement + document.getElementById("root") as HTMLElement ); root.render( - + + + );