Skip to content

Commit

Permalink
Removed Providers
Browse files Browse the repository at this point in the history
  • Loading branch information
subratamondal1 committed Mar 19, 2024
1 parent 47a19ad commit cc2cf1e
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 214 deletions.
3 changes: 0 additions & 3 deletions frontend/react-app/src/auth/LoginPage.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { useRef, useState, useEffect } from "react"
import { Link, useNavigate, useLocation } from "react-router-dom"

import useAuth from "../hooks/useAuth"
import axios from "../api/api"
import "./LoginPage.css"

const LOGIN_URL = "/login"

const LoginPage = () => {
const { setAuth } = useAuth()

const navigate = useNavigate()
const location = useLocation()
const from = location.state?.from?.pathname || "/"
Expand Down
11 changes: 0 additions & 11 deletions frontend/react-app/src/context/AuthProvider.jsx

This file was deleted.

10 changes: 0 additions & 10 deletions frontend/react-app/src/hooks/useAuth.jsx

This file was deleted.

45 changes: 0 additions & 45 deletions frontend/react-app/src/hooks/useAxiosPrivate.jsx

This file was deleted.

21 changes: 0 additions & 21 deletions frontend/react-app/src/hooks/useRefreshToken.jsx

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/react-app/src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import ReactDOM from "react-dom/client";
import { createBrowserRouter, RouterProvider } from "react-router-dom"

import "./index.css"
import App from "./App.jsx"
import NotFoundPage from "./ui/NotFoundPage.jsx"
import UserProfile from "./user/UserProfile.jsx"
import RegisterPage from "./auth/RegisterPage.jsx"
import LoginPage from "./auth/LoginPage.jsx"
import "./index.css"

const token = localStorage.getItem("appToken")

Expand Down
42 changes: 0 additions & 42 deletions frontend/react-app/src/provider/authProvider.jsx

This file was deleted.

15 changes: 0 additions & 15 deletions frontend/react-app/src/routes/ProtectedRoute.jsx

This file was deleted.

66 changes: 0 additions & 66 deletions frontend/react-app/src/routes/index.jsx

This file was deleted.

0 comments on commit cc2cf1e

Please sign in to comment.