Skip to content

Commit

Permalink
Update search page
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Apr 3, 2024
1 parent 37aca68 commit a2cd355
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Activate = lazy(() => import('./pages/Activate'))
const ForgotPassword = lazy(() => import('./pages/ForgotPassword'))
const ResetPassword = lazy(() => import('./pages/ResetPassword'))
const Home = lazy(() => import('./pages/Home'))
const Cars = lazy(() => import('./pages/Cars'))
const Search = lazy(() => import('./pages/Search'))
const Checkout = lazy(() => import('./pages/Checkout'))
const Bookings = lazy(() => import('./pages/Bookings'))
const Booking = lazy(() => import('./pages/Booking'))
Expand All @@ -30,7 +30,7 @@ const App = () => (
<Route path="/forgot-password" element={<ForgotPassword />} />
<Route path="/reset-password" element={<ResetPassword />} />
<Route path="/" element={<Home />} />
<Route path="/cars" element={<Cars />} />
<Route path="/search" element={<Search />} />
<Route path="/checkout" element={<Checkout />} />
<Route path="/bookings" element={<Bookings />} />
<Route path="/booking" element={<Booking />} />
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const Home = () => {
return
}

navigate('/cars', {
navigate('/search', {
state: {
pickupLocationId: pickupLocation,
dropOffLocationId: dropOffLocation,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Cars.tsx → frontend/src/pages/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import CarList from '../components/CarList'

import '../assets/css/cars.css'

const Cars = () => {
const Search = () => {
const location = useLocation()

const [visible, setVisible] = useState(false)
Expand Down Expand Up @@ -158,4 +158,4 @@ const Cars = () => {
)
}

export default Cars
export default Search

0 comments on commit a2cd355

Please sign in to comment.