Skip to content

Commit

Permalink
chore: add redux
Browse files Browse the repository at this point in the history
  • Loading branch information
SplitCode committed Oct 2, 2024
1 parent e5ec029 commit aa5d59b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"proxy": "http://localhost:5001",
"dependencies": {
"@reduxjs/toolkit": "^2.2.7",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand All @@ -13,6 +14,7 @@
"react": "^18.3.1",
"react-bootstrap": "^2.10.5",
"react-dom": "^18.3.1",
"react-redux": "^9.1.2",
"react-router-dom": "^6.26.2",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
Expand Down
12 changes: 0 additions & 12 deletions frontend/src/App.js

This file was deleted.

28 changes: 28 additions & 0 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import './App.css';
import { Outlet } from 'react-router-dom';
import Header from './components/Header';

// const AuthProvider = ({ children }) => {
// const [loggedIn, setLoggedIn] = useState(false);

// const logIn = () => setLoggedIn(true);
// const logOut = () => {
// localStorage.removeItem('userId');
// setLoggedIn(false);
// };

// return (
// <AuthContext.Provider value={{ loggedIn, logIn, logOut }}>
// {children}
// </AuthContext.Provider>
// );
// };

const App = () => (
<>
<Header />
<Outlet />
</>
);

export default App;

0 comments on commit aa5d59b

Please sign in to comment.