diff --git a/apps/web/src/components/ui/Select.tsx b/apps/web/src/components/ui/Select.tsx index d776060..c544e74 100644 --- a/apps/web/src/components/ui/Select.tsx +++ b/apps/web/src/components/ui/Select.tsx @@ -17,6 +17,21 @@ const ChevronDown = ({ className }: { className?: string }) => ( ); +const ChevronUp = ({ className }: { className?: string }) => ( + + + +); + const Check = ({ className }: { className?: string }) => ( , React.ComponentPropsWithoutRef @@ -45,12 +62,12 @@ export const SelectTrigger = React.forwardRef< - {children} + {children} @@ -58,28 +75,73 @@ export const SelectTrigger = React.forwardRef< )); SelectTrigger.displayName = "SelectTrigger"; +export const SelectScrollUpButton = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + + + +)); +SelectScrollUpButton.displayName = "SelectScrollUpButton"; + +export const SelectScrollDownButton = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + + + +)); +SelectScrollDownButton.displayName = "SelectScrollDownButton"; + export const SelectContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef ->(({ className, children, position = "popper", ...props }, ref) => ( +>(({ className, children, position = "popper", sideOffset = 4, ...props }, ref) => ( - + + {children} + )); SelectContent.displayName = "SelectContent"; +export const SelectSeparator = SelectPrimitive.Separator; + export const SelectItem = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef @@ -87,7 +149,7 @@ export const SelectItem = React.forwardRef< )); SelectItem.displayName = "SelectItem"; - diff --git a/apps/web/src/pages/TimerPage.tsx b/apps/web/src/pages/TimerPage.tsx index 819a05d..c4afeaa 100644 --- a/apps/web/src/pages/TimerPage.tsx +++ b/apps/web/src/pages/TimerPage.tsx @@ -337,44 +337,42 @@ export const TimerPage = () => { - - - - Zamanlayıcı Torrentleri - - - Sıralama - { - if (value !== sortKey) { - setSortKey(value as typeof sortKey); - setSortDirection("asc"); - } - }} - > - - - - - {sortOptions.map((option) => ( - { - if (option.value === sortKey) { - setSortDirection((current) => - current === "asc" ? "desc" : "asc" - ); - } - }} - > - {option.label} - - ))} - - - + + + Zamanlayıcı Torrentleri + + + Sıralama + { + if (value !== sortKey) { + setSortKey(value as typeof sortKey); + setSortDirection("asc"); + } + }} + > + + + + + {sortOptions.map((option) => ( + { + if (option.value === sortKey) { + setSortDirection((current) => + current === "asc" ? "desc" : "asc" + ); + } + }} + > + {option.label} + + ))} + +