Skip to content

Commit

Permalink
add changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alicemirigo92 committed Jun 28, 2023
1 parent c6bf59b commit 389d038
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react/function-component-definition */
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import './App.css';
import { Provider } from 'react-redux';
Expand All @@ -12,25 +13,24 @@ import { CreateUserForm } from './components/Registration';
import { LoginForm } from './components/Login';
import Reservations from './components/Reservations';

function App() {
return (
<div className="App">
<Provider store={store}>
<BrowserRouter>
<Routes>
<Route path="/" element={<LoginForm />} />
<Route path="/registration" element={<CreateUserForm />} />
<Route path="/home" element={<Home />} />
<Route path="/add_car" element={<AddCar />} />
<Route path="/car-delete" element={<DeleteCar />} />
<Route path="/reservations" element={<Reservations />} />
<Route path="/create-reservation" element={<CreateReservation />} />
<Route path="/car/:carId" element={<CarDetails />} />
<Route path="/car/:carId/reservation" element={<CarReservation />} />
</Routes>
</BrowserRouter>
</Provider>
</div>
);
}
const App = () => (
<div className="App">
<Provider store={store}>
<BrowserRouter>
<Routes>
<Route path="/" element={<LoginForm />} />
<Route path="/registration" element={<CreateUserForm />} />
<Route path="/home" element={<Home />} />
<Route path="/add_car" element={<AddCar />} />
<Route path="/car-delete" element={<DeleteCar />} />
<Route path="/reservations" element={<Reservations />} />
<Route path="/create-reservation" element={<CreateReservation />} />
<Route path="/car/:carId" element={<CarDetails />} />
<Route path="/car/:carId/reservation" element={<CarReservation />} />
</Routes>
</BrowserRouter>
</Provider>
</div>
);

export default App;
6 changes: 3 additions & 3 deletions src/_tests_/__snapshots__/Home.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ exports[`Home component should match the snapshot 1`] = `
Our Cars
</h2>
<h3
class="home-header"
class="home-header two"
>
Select your favorite car!
</h3>
<div
class="arrows-cars"
>
<button
class="arrow-button arrow-left"
class="btn"
type="button"
>
Previous
Expand All @@ -142,7 +142,7 @@ exports[`Home component should match the snapshot 1`] = `
</div>
</div>
<button
class="arrow-button arrow-right"
class="btn next-btn"
type="button"
>
Next
Expand Down

0 comments on commit 389d038

Please sign in to comment.