Skip to content

Commit

Permalink
change app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lyokoth committed Jan 26, 2024
1 parent ed0b34a commit f544105
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { headerData, reservationData, orderOnline } from './constants';
import DataContext from './DataContext/DataContext';
import Reservations from './Components/Reservations/Reservations';
import OrderOnline from './Components/OrderOnline/OrderOnline';
import { Routes, Route, useLocation } from 'react-router-dom';
import { Routes, Router, Route, useLocation } from 'react-router-dom';
import ComfirmedBooking from './Components/Reservations/ConfirmedBooking/ConfirmedBooking';
import Testimonials from './Components/Main/Testimonials/Testimonials';
// import Login from './Components/Login/Login';
Expand All @@ -37,8 +37,8 @@ function App() {
}

return (
<>

<Router>
<Nav />
<DataContext.Provider value={data}>
{path === "/meta-front-end-capstone" && <Header />}
Expand All @@ -50,15 +50,13 @@ function App() {
<Route path="/meta-front-end-capstone/confirmed-booking" element={<ComfirmedBooking />} />
</Routes>
</DataContext.Provider>

<Specials />
<Testimonials />
<About />

<Footer />
</>


</Router>
);
};
}

export default App;

0 comments on commit f544105

Please sign in to comment.