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() {
<h1 className="pt-6 font-bold">Sort by</h1>
<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">
<SelectValue placeholder="Rating" />
</SelectTrigger>
......@@ -154,10 +158,12 @@ export default function Sort() {
</SelectGroup>
</SelectContent>
</Select>
<Button variant="ghost" onClick={() => {
toggleSortOrder()
setIsSetByUser(true)
}} className="bg-background border-none">
<Button variant="ghost"
onClick={() => {
toggleSortOrder()
setIsSetByUser(true)
}}
className="bg-background border-none">
<Icons.arrowdown className={`h-4 w-4 transition-all transform ${selectedSortOrder === 'asc' ? 'rotate-180' : ''}`} />
</Button>
</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