REF: Sort By title

This commit is contained in:
Marcos Rodriguez Velez 2024-11-14 14:15:08 -04:00
parent 4e9bf7e44b
commit ab98fe6616
3 changed files with 9 additions and 6 deletions

View File

@ -9,9 +9,10 @@ interface HeaderMenuButtonProps {
onPressMenuItem: (id: string) => void;
actions?: Action[] | Action[][];
disabled?: boolean;
title?: string;
}
const HeaderMenuButton: React.FC<HeaderMenuButtonProps> = ({ onPressMenuItem, actions, disabled }) => {
const HeaderMenuButton: React.FC<HeaderMenuButtonProps> = ({ onPressMenuItem, actions, disabled, title }) => {
const { colors } = useTheme();
const styleProps = Platform.OS === 'android' ? { iconStyle: { transform: [{ rotate: '90deg' }] } } : {};
@ -38,6 +39,7 @@ const HeaderMenuButton: React.FC<HeaderMenuButtonProps> = ({ onPressMenuItem, ac
isMenuPrimaryAction
onPressMenuItem={onPressMenuItem}
actions={menuActions}
title={title}
>
<Icon size={22} name="more-horiz" type="material" color={colors.foregroundColor} {...styleProps} />
</ToolTipMenu>

View File

@ -597,10 +597,11 @@
"tip": "This feature allows you to see, label, freeze or select coins for improved wallet management. You can select multiple coins by tapping on the colored circles.",
"sort_asc": "Ascending",
"sort_desc": "Descending",
"sort_height": "by Height",
"sort_value": "by Value",
"sort_label": "by Label",
"sort_status": "by Status"
"sort_height": "Height",
"sort_value": "Value",
"sort_label": "Label",
"sort_status": "Status",
"sort_by": "Sort by"
},
"units": {
"BTC": "BTC",

View File

@ -485,7 +485,7 @@ const CoinControl: React.FC = () => {
}, []);
const HeaderRight = useMemo(
() => <HeaderMenuButton onPressMenuItem={toolTipOnPressMenuItem} actions={toolTipActions} />,
() => <HeaderMenuButton onPressMenuItem={toolTipOnPressMenuItem} actions={toolTipActions} title={loc.cc.sort_by} />,
[toolTipOnPressMenuItem, toolTipActions],
);