From 565add959dbed9abd8376363a2d71c4b6185d7af Mon Sep 17 00:00:00 2001 From: aelassas Date: Wed, 3 Apr 2024 22:24:18 +0000 Subject: [PATCH] Update search page --- frontend/src/App.tsx | 4 ++-- frontend/src/pages/Home.tsx | 2 +- frontend/src/pages/{Properties.tsx => Search.tsx} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename frontend/src/pages/{Properties.tsx => Search.tsx} (100%) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b8237672..3c539e54 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -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 Properties = lazy(() => import('./pages/Properties')) +const Search = lazy(() => import('./pages/Search')) const Property = lazy(() => import('./pages/Property')) const Checkout = lazy(() => import('./pages/Checkout')) const Bookings = lazy(() => import('./pages/Bookings')) @@ -31,7 +31,7 @@ const App = () => ( } /> } /> } /> - } /> + } /> } /> } /> } /> diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx index 81978503..98b66963 100644 --- a/frontend/src/pages/Home.tsx +++ b/frontend/src/pages/Home.tsx @@ -43,7 +43,7 @@ const Home = () => { return } - navigate('/properties', { + navigate('/search', { state: { locationId: location, from, diff --git a/frontend/src/pages/Properties.tsx b/frontend/src/pages/Search.tsx similarity index 100% rename from frontend/src/pages/Properties.tsx rename to frontend/src/pages/Search.tsx