mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
OPS: Update RNScreen
This commit is contained in:
parent
76f347f918
commit
ab6b7e5889
@ -41,7 +41,6 @@ class AmountInput extends Component {
|
||||
disabled: PropTypes.bool,
|
||||
colors: PropTypes.object.isRequired,
|
||||
unit: PropTypes.string,
|
||||
isDisabled: PropTypes.bool,
|
||||
onBlur: PropTypes.func,
|
||||
onFocus: PropTypes.func,
|
||||
};
|
||||
|
@ -65,12 +65,14 @@ import SelfTest from '../screen/settings/SelfTest';
|
||||
import ReleaseNotes from '../screen/settings/ReleaseNotes';
|
||||
import ToolsScreen from '../screen/settings/tools';
|
||||
import SettingsPrivacy from '../screen/settings/SettingsPrivacy';
|
||||
import { useIsLargeScreen } from '../hooks/useIsLargeScreen';
|
||||
|
||||
const DetailViewStackScreensStack = () => {
|
||||
const theme = useTheme();
|
||||
const navigation = useExtendedNavigation();
|
||||
const { wallets } = useStorage();
|
||||
const { isTotalBalanceEnabled } = useSettings();
|
||||
const { isLargeScreen } = useIsLargeScreen();
|
||||
|
||||
const DetailButton = useMemo(() => <HeaderRightButton testID="DetailButton" disabled={true} title={loc.send.create_details} />, []);
|
||||
|
||||
@ -81,16 +83,16 @@ const DetailViewStackScreensStack = () => {
|
||||
const RightBarButtons = useMemo(
|
||||
() => (
|
||||
<>
|
||||
<AddWalletButton onPress={navigateToAddWallet} />
|
||||
{!isLargeScreen && <AddWalletButton onPress={navigateToAddWallet} />}
|
||||
<View style={styles.width24} />
|
||||
<SettingsButton />
|
||||
</>
|
||||
),
|
||||
[navigateToAddWallet],
|
||||
[isLargeScreen, navigateToAddWallet],
|
||||
);
|
||||
|
||||
const useWalletListScreenOptions = useMemo<NativeStackNavigationOptions>(() => {
|
||||
const displayTitle = !isTotalBalanceEnabled || wallets.length <= 1;
|
||||
const displayTitle = (!isTotalBalanceEnabled || wallets.length <= 1) && !isLargeScreen;
|
||||
return {
|
||||
title: displayTitle ? loc.wallets.wallets : '',
|
||||
navigationBarColor: theme.colors.navigationBarColor,
|
||||
@ -103,7 +105,7 @@ const DetailViewStackScreensStack = () => {
|
||||
},
|
||||
headerRight: () => RightBarButtons,
|
||||
};
|
||||
}, [RightBarButtons, isTotalBalanceEnabled, theme.colors.customHeader, theme.colors.navigationBarColor, wallets.length]);
|
||||
}, [RightBarButtons, isLargeScreen, isTotalBalanceEnabled, theme.colors.customHeader, theme.colors.navigationBarColor, wallets.length]);
|
||||
|
||||
const walletListScreenOptions = useWalletListScreenOptions;
|
||||
|
||||
|
@ -305,7 +305,7 @@ const ScanLndInvoice = () => {
|
||||
amount={amount}
|
||||
onAmountUnitChange={setUnit}
|
||||
onChangeText={setAmount}
|
||||
disabled={!decoded || isLoading || decoded.num_satoshis > 0}
|
||||
disabled={!decoded || isLoading || decoded.num_satoshis > 0 || isAmountInitiallyEmpty}
|
||||
unit={unit}
|
||||
inputAccessoryViewID={DismissKeyboardInputAccessoryViewID}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user