File tree Expand file tree Collapse file tree
app/components/UI/Trending/components/FilterBar Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export interface FilterButtonProps {
1717 ellipsizeMode ?: 'tail' | 'head' | 'middle' | 'clip' ;
1818 /** Optional Tailwind class overrides for layout in custom contexts */
1919 twClassName ?: string ;
20- /** Optional icon name to replace the default ArrowDown icon */
20+ /** Optional icon name to show before the label (e.g., for sort direction indicators) */
2121 iconName ?: IconName ;
2222}
2323
@@ -29,7 +29,7 @@ export const FilterButton: React.FC<FilterButtonProps> = ({
2929 numberOfLines,
3030 ellipsizeMode,
3131 twClassName,
32- iconName = IconName . ArrowDown ,
32+ iconName,
3333} ) => {
3434 const tw = useTailwind ( ) ;
3535
@@ -46,11 +46,13 @@ export const FilterButton: React.FC<FilterButtonProps> = ({
4646 disabled = { disabled }
4747 >
4848 < View style = { tw `flex-row items-center justify-center gap-1` } >
49- < Icon
50- name = { iconName }
51- color = { IconColor . Alternative }
52- size = { IconSize . Xs }
53- />
49+ { iconName && (
50+ < Icon
51+ name = { iconName }
52+ color = { IconColor . Alternative }
53+ size = { IconSize . Xs }
54+ />
55+ ) }
5456 < Text
5557 style = { tw `min-w-0 text-[14px] font-medium text-default` }
5658 numberOfLines = { numberOfLines }
You can’t perform that action at this time.
0 commit comments