mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-15 11:59:21 +01:00
Update TooltipMenu.tsx
This commit is contained in:
parent
f9d8594509
commit
0b33af59f0
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
import React, { forwardRef, useCallback, useMemo } from 'react';
|
import React, { useCallback, useMemo } from 'react';
|
||||||
import { Platform, Pressable, TouchableOpacity } from 'react-native';
|
import { Platform, Pressable, TouchableOpacity } from 'react-native';
|
||||||
import { MenuView, MenuAction, NativeActionEvent } from '@react-native-menu/menu';
|
import { MenuView, MenuAction, NativeActionEvent } from '@react-native-menu/menu';
|
||||||
import { ContextMenuView, RenderItem, OnPressMenuItemEventObject, IconConfig, MenuElementConfig } from 'react-native-ios-context-menu';
|
import { ContextMenuView, RenderItem, OnPressMenuItemEventObject, IconConfig, MenuElementConfig } from 'react-native-ios-context-menu';
|
||||||
import { ToolTipMenuProps, Action } from './types';
|
import { ToolTipMenuProps, Action } from './types';
|
||||||
import { useSettings } from '../hooks/context/useSettings';
|
import { useSettings } from '../hooks/context/useSettings';
|
||||||
|
|
||||||
const ToolTipMenu = forwardRef<any, ToolTipMenuProps>((props, ref) => {
|
const ToolTipMenu = (props: ToolTipMenuProps) => {
|
||||||
const {
|
const {
|
||||||
title = '',
|
title = '',
|
||||||
isMenuPrimaryAction = false,
|
isMenuPrimaryAction = false,
|
||||||
|
@ -199,6 +199,6 @@ const ToolTipMenu = forwardRef<any, ToolTipMenuProps>((props, ref) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return props.actions.length > 0 ? (Platform.OS === 'ios' && renderPreview ? renderContextMenuView() : renderMenuView()) : null;
|
return props.actions.length > 0 ? (Platform.OS === 'ios' && renderPreview ? renderContextMenuView() : renderMenuView()) : null;
|
||||||
});
|
};
|
||||||
|
|
||||||
export default ToolTipMenu;
|
export default ToolTipMenu;
|
||||||
|
|
Loading…
Add table
Reference in a new issue