Skip to content
Snippets Groups Projects
Commit d47ca500 authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

ups forgor one

parent 9a8840ca
No related branches found
No related tags found
No related merge requests found
Pipeline #40104 passed
...@@ -142,7 +142,11 @@ export default function Sort() { ...@@ -142,7 +142,11 @@ export default function Sort() {
<h1 className="pt-6 font-bold">Sort by</h1> <h1 className="pt-6 font-bold">Sort by</h1>
<div className="flex space-x-2 pb-1"> <div className="flex space-x-2 pb-1">
<Select value={selectedSortMethod} onValueChange={(value) => setSelectedSortMethod(value)}> <Select value={selectedSortMethod}
onValueChange={(value) => {
setSelectedSortMethod(value)
setIsSetByUser(true)
}}>
<SelectTrigger className="bg-background border-none w-full"> <SelectTrigger className="bg-background border-none w-full">
<SelectValue placeholder="Rating" /> <SelectValue placeholder="Rating" />
</SelectTrigger> </SelectTrigger>
...@@ -154,10 +158,12 @@ export default function Sort() { ...@@ -154,10 +158,12 @@ export default function Sort() {
</SelectGroup> </SelectGroup>
</SelectContent> </SelectContent>
</Select> </Select>
<Button variant="ghost" onClick={() => { <Button variant="ghost"
toggleSortOrder() onClick={() => {
setIsSetByUser(true) toggleSortOrder()
}} className="bg-background border-none"> setIsSetByUser(true)
}}
className="bg-background border-none">
<Icons.arrowdown className={`h-4 w-4 transition-all transform ${selectedSortOrder === 'asc' ? 'rotate-180' : ''}`} /> <Icons.arrowdown className={`h-4 w-4 transition-all transform ${selectedSortOrder === 'asc' ? 'rotate-180' : ''}`} />
</Button> </Button>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment