diff --git a/e2e/channels.e2e.js b/e2e/channels.e2e.js
index 265b0d870..b7127de24 100644
--- a/e2e/channels.e2e.js
+++ b/e2e/channels.e2e.js
@@ -95,7 +95,7 @@ d('LN Channel Onboarding', () => {
// should show 80% limit note
await element(by.id('SliderHandle')).swipe('right', 'slow', NaN, 0.8);
await expect(element(by.id('QuickSetupBlocktankNote'))).toBeVisible();
- await element(by.id('QuickSetupCustomAmount')).tap();
+ await element(by.id('QuickSetupTextField')).tap();
await element(by.id('NumberPadButtonsMax')).tap();
await element(by.id('NumberPadButtonsDone')).tap();
await expect(element(by.id('QuickSetupBlocktankNote'))).toBeVisible();
@@ -113,14 +113,14 @@ d('LN Channel Onboarding', () => {
// should show Blocktank limit note
await element(by.id('SliderHandle')).swipe('right', 'slow', NaN, 0.8);
await expect(element(by.id('QuickSetupBlocktankNote'))).toBeVisible();
- await element(by.id('QuickSetupCustomAmount')).tap();
+ await element(by.id('QuickSetupTextField')).tap();
await element(by.id('NumberPadButtonsMax')).tap();
await element(by.id('NumberPadButtonsDone')).tap();
await expect(element(by.id('QuickSetupBlocktankNote'))).toBeVisible();
// NumberPad
await element(by.id('SliderHandle')).swipe('left');
- await element(by.id('QuickSetupCustomAmount')).tap();
+ await element(by.id('QuickSetupTextField')).tap();
await element(by.id('N2').withAncestor(by.id('QuickSetup'))).tap();
await element(by.id('N0').withAncestor(by.id('QuickSetup'))).multiTap(5);
await element(by.id('NumberPadButtonsDone')).tap();
@@ -146,7 +146,7 @@ d('LN Channel Onboarding', () => {
await element(by.id('QuickSetupAdvanced')).tap();
// NumberPad
- await element(by.id('CustomSetupCustomAmount')).tap();
+ await element(by.id('CustomSetupNumberField')).tap();
await element(by.id('NumberPadButtonsMax')).tap();
await element(by.id('NumberPadButtonsUnit')).tap();
await element(by.id('NumberPadButtonsDone')).tap();
diff --git a/src/screens/Lightning/CustomSetup.tsx b/src/screens/Lightning/CustomSetup.tsx
index e8d27dff1..63b4e1fdc 100644
--- a/src/screens/Lightning/CustomSetup.tsx
+++ b/src/screens/Lightning/CustomSetup.tsx
@@ -6,7 +6,12 @@ import React, {
useEffect,
useCallback,
} from 'react';
-import { ImageSourcePropType, StyleSheet, View } from 'react-native';
+import {
+ ImageSourcePropType,
+ StyleSheet,
+ TouchableOpacity,
+ View,
+} from 'react-native';
import { useFocusEffect } from '@react-navigation/native';
import { FadeIn, FadeOut } from 'react-native-reanimated';
import { useAppSelector } from '../../hooks/redux';
@@ -401,7 +406,6 @@ const CustomSetup = ({
const onCustomAmount = (): void => {
setShowNumberPad(true);
- setTextFieldValue('0');
};
const onDone = useCallback(() => {
@@ -509,18 +513,12 @@ const CustomSetup = ({
{!showNumberPad && (
{getBarrels()}
- {spending && (
-
- )}
)}
-
+
{!showNumberPad && (
@@ -529,7 +527,9 @@ const CustomSetup = ({
{channelOpenFee[`${spendingAmount}-${amount}`] && (
- (Cost: {channelOpenFee[`${spendingAmount}-${amount}`]})
+ {t('cost', {
+ amount: channelOpenFee[`${spendingAmount}-${amount}`],
+ })}
)}
@@ -539,9 +539,9 @@ const CustomSetup = ({
value={textFieldValue}
showPlaceholder={showNumberPad}
testID="CustomSetupNumberField"
- onPress={onChangeUnit}
+ onPress={onCustomAmount}
/>
-
+
{!showNumberPad && (
{
setShowNumberPad(true);
- setTextFieldValue('0');
};
const onDone = useCallback(() => {
@@ -281,22 +280,12 @@ const QuickSetup = ({
)}
-
-
-
-
>
)}
-
+
{!showNumberPad && (
{t('spending_label')}
@@ -306,9 +295,9 @@ const QuickSetup = ({
value={textFieldValue}
showPlaceholder={showNumberPad}
testID="QuickSetupTextField"
- onPress={onChangeUnit}
+ onPress={onCustomAmount}
/>
-
+
{!showNumberPad && (