mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
REF: Sort By title
This commit is contained in:
parent
4e9bf7e44b
commit
ab98fe6616
@ -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>
|
||||
|
@ -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",
|
||||
|
@ -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],
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user