mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-15 11:59:21 +01:00
wip
This commit is contained in:
parent
0b33af59f0
commit
4ff759b538
2 changed files with 138 additions and 137 deletions
|
@ -1,4 +1,4 @@
|
|||
import React, { useCallback, useMemo, forwardRef } from 'react';
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import { Image, Keyboard, Platform, StyleSheet, Text } from 'react-native';
|
||||
import Clipboard from '@react-native-clipboard/clipboard';
|
||||
import ToolTipMenu from './TooltipMenu';
|
||||
|
@ -20,8 +20,13 @@ interface AddressInputScanButtonProps {
|
|||
beforePress?: () => Promise<void> | void;
|
||||
}
|
||||
|
||||
export const AddressInputScanButton = forwardRef<any, AddressInputScanButtonProps>(
|
||||
({ isLoading, onChangeText, type = 'default', testID = 'BlueAddressInputScanQrButton', beforePress }, ref) => {
|
||||
export const AddressInputScanButton = ({
|
||||
isLoading,
|
||||
onChangeText,
|
||||
type = 'default',
|
||||
testID = 'BlueAddressInputScanQrButton',
|
||||
beforePress,
|
||||
}: AddressInputScanButtonProps) => {
|
||||
const { colors } = useTheme();
|
||||
const { isClipboardGetContentEnabled } = useSettings();
|
||||
|
||||
|
@ -135,7 +140,6 @@ export const AddressInputScanButton = forwardRef<any, AddressInputScanButtonProp
|
|||
|
||||
return (
|
||||
<ToolTipMenu
|
||||
ref={ref}
|
||||
actions={actions}
|
||||
isButton
|
||||
onPressMenuItem={onMenuItemPressed}
|
||||
|
@ -159,8 +163,7 @@ export const AddressInputScanButton = forwardRef<any, AddressInputScanButtonProp
|
|||
)}
|
||||
</ToolTipMenu>
|
||||
);
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
AddressInputScanButton.displayName = 'AddressInputScanButton';
|
||||
|
||||
|
|
|
@ -56,7 +56,6 @@ const ViewEditMultisigCosigners: React.FC = () => {
|
|||
const { isBiometricUseCapableAndEnabled } = useBiometrics();
|
||||
const { isElectrumDisabled, isPrivacyBlurEnabled } = useSettings();
|
||||
const { dispatch, setParams, setOptions } = useExtendedNavigation<NavigationProp>();
|
||||
const openScannerButtonRef = useRef(null);
|
||||
const route = useRoute<RouteParams>();
|
||||
const { walletID } = route.params;
|
||||
const w = useRef(wallets.find(wallet => wallet.getID() === walletID));
|
||||
|
@ -562,7 +561,6 @@ const ViewEditMultisigCosigners: React.FC = () => {
|
|||
{!isLoading && (
|
||||
<>
|
||||
<AddressInputScanButton
|
||||
ref={openScannerButtonRef}
|
||||
beforePress={async () => {
|
||||
await provideMnemonicsModalRef.current?.dismiss();
|
||||
}}
|
||||
|
|
Loading…
Add table
Reference in a new issue