more
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Routes, Route, Navigate } from "react-router-dom";
|
||||
import { useAuth } from "./contexts/AuthContext";
|
||||
import { useContext } from 'react'
|
||||
import Navbar from "./components/Navbar";
|
||||
import Login from "./pages/login/Login";
|
||||
import Signup from "./pages/Signup";
|
||||
@@ -8,9 +9,11 @@ import Addresses from "./pages/addresses/Addresses";
|
||||
import Alerts from "./pages/alerts/Alerts";
|
||||
import AlertHistory from "./pages/alertHistory/AlertHistory";
|
||||
import Account from "./pages/user_account/Account";
|
||||
import { AuthProvider } from "./ShopContext";
|
||||
import useAuth from "./ShopContext";
|
||||
|
||||
export default function App() {
|
||||
const { currentUser, isSubscribed } = useAuth();
|
||||
const { context } = useContext(ShopContext)
|
||||
|
||||
if (!currentUser) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user