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}} />