-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
39 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 10 additions & 23 deletions
33
client/src/Components/LandingPage/Products/Filter/FilterPrice.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,17 @@ | ||
/* eslint-disable jsx-a11y/label-has-associated-control */ | ||
|
||
function FilterPrice() { | ||
const handle = () => 'dadada' | ||
function FilterPrice({ changeFilterPrice }) { | ||
return ( | ||
<div className="filter-price-container"> | ||
<h4>Range Price</h4> | ||
<label htmlFor="points">Max Price:</label> | ||
<input | ||
type="range" | ||
name="points" | ||
min="0" | ||
max="10" | ||
value={7} | ||
onChange={handle} | ||
/> | ||
<label htmlFor="points">Min Price:</label> | ||
<input | ||
type="range" | ||
name="points" | ||
min="0" | ||
max="10" | ||
value={0} | ||
onChange={handle} | ||
/> | ||
<h4>sort :</h4> | ||
<button type="button" onClick={changeFilterPrice}> | ||
max | ||
</button> | ||
<button type="button" onClick={changeFilterPrice}> | ||
min | ||
</button> | ||
</div> | ||
) | ||
); | ||
} | ||
|
||
export default FilterPrice | ||
export default FilterPrice; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters