This commit is contained in:
KS Jannette
2026-03-29 01:48:55 -04:00
parent c0aaaedaf1
commit 1418e7f97c
3 changed files with 35 additions and 17 deletions

View File

@@ -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 (