mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
Update CoinControl.tsx
This commit is contained in:
parent
d2e05fd930
commit
b53af08c75
@ -457,13 +457,15 @@ const CoinControl: React.FC = () => {
|
||||
}
|
||||
}, [output]);
|
||||
|
||||
const toolTipActions = useMemo((): Action[] => {
|
||||
const toolTipActions = useMemo((): Action[] | Action[][] => {
|
||||
return [
|
||||
sortDirection === ESortDirections.asc ? CommonToolTipActions.SortASC : CommonToolTipActions.SortDESC,
|
||||
{ ...CommonToolTipActions.SortHeight, menuState: sortType === ESortTypes.height },
|
||||
{ ...CommonToolTipActions.SortValue, menuState: sortType === ESortTypes.value },
|
||||
{ ...CommonToolTipActions.SortLabel, menuState: sortType === ESortTypes.label },
|
||||
{ ...CommonToolTipActions.SortStatus, menuState: sortType === ESortTypes.frozen },
|
||||
[sortDirection === ESortDirections.asc ? CommonToolTipActions.SortASC : CommonToolTipActions.SortDESC],
|
||||
[
|
||||
{ ...CommonToolTipActions.SortHeight, menuState: sortType === ESortTypes.height },
|
||||
{ ...CommonToolTipActions.SortValue, menuState: sortType === ESortTypes.value },
|
||||
{ ...CommonToolTipActions.SortLabel, menuState: sortType === ESortTypes.label },
|
||||
{ ...CommonToolTipActions.SortStatus, menuState: sortType === ESortTypes.frozen },
|
||||
],
|
||||
];
|
||||
}, [sortDirection, sortType]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user