From aada1271a02248c1b41c0873293bd4275d2e10c7 Mon Sep 17 00:00:00 2001 From: b1ek Date: Mon, 8 May 2023 22:53:28 +1000 Subject: [PATCH] finish base filter form --- .../src/pages/IndexPage/index.jsx | 47 ++++++++++++++++--- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/pairent_frontend_react/src/pages/IndexPage/index.jsx b/pairent_frontend_react/src/pages/IndexPage/index.jsx index 75f8e8a..3bd7af0 100644 --- a/pairent_frontend_react/src/pages/IndexPage/index.jsx +++ b/pairent_frontend_react/src/pages/IndexPage/index.jsx @@ -122,7 +122,7 @@ const SearchBarSpacer = styled.div` margin: 0 20px `; -const FilterArea = styled.input` +const SearchBarInput = styled.input` border: 0; background: 0; margin: 0 16px; margin-right: 0; @@ -149,9 +149,15 @@ const FiltersForm = () => { per_day: false, per_month: false, - area_from: 0, - area_to: 0, - rooms: apart_sizes[2] + area_from: '', + area_to: '', + + price_from: '', + price_to: '', + + address: '', + + rooms: 0, }; @@ -188,7 +194,7 @@ const FiltersForm = () => { Площадь от - { onChange={(e) => setState({area_from: e.target.value})}/> до - { value={state.rooms} /> + + Цена + + от + setState({price_from: e.target.value})} + style={{width:60}} /> + + до + setState({price_to: e.target.value})} + style={{width:60}} /> + + ₽ + + + + setState({address: e.target.value})} + style={{width:300,marginLeft:0}} />