diff --git a/browser-domain/src/App.tsx b/browser-domain/src/App.tsx index 0e82d7e..64d12c4 100644 --- a/browser-domain/src/App.tsx +++ b/browser-domain/src/App.tsx @@ -1,5 +1,5 @@ import { LogIn } from "./components/LogIn/LogIn"; -import { Navigate, Route, RouteProps, Routes } from "react-router"; +import { Navigate, Route, RouteProps, Routes, useNavigate, useParams } from "react-router"; import { SignUp } from "./components/SignUp/SignUp"; import { CreateAirline } from "./components/SignUp/CreateAirline"; import { Home } from "./components/Home/Home"; @@ -7,35 +7,60 @@ import { CreateFlight } from "./components/CreateFlight/CreateFlight"; import { Button } from "antd"; import useAuth, { AuthProvider } from "./useAuth"; import { EditFlight } from "./components/CreateFlight/EditFlight"; +import LandingPage from "./components/Landing/Landing"; function Router() { const { user, logout, isAirline, isAdmin } = useAuth(); + const navigate = useNavigate() return (