Skip to content

Commit db140a3

Browse files
chore: skip payment method screen + updated token icons (#253)
1 parent 62fcc02 commit db140a3

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

dapps/pos-app/app/amount.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function AmountScreen() {
3737
}
3838

3939
router.push({
40-
pathname: "/payment-method",
40+
pathname: "/payment-token",
4141
params: {
4242
amount: formattedAmount,
4343
},

dapps/pos-app/app/payment-method.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default function PaymentMethodScreen() {
2727
return (
2828
<ThemedView style={styles.container}>
2929
<Button
30+
onPress={() => {}}
3031
style={[
3132
styles.actionButton,
3233
{ backgroundColor: Theme["foreground-primary"] },
-5.21 KB
Loading
-1.22 KB
Loading

dapps/pos-app/components/button.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ interface Props {
66
children: React.ReactNode;
77
style?: StyleProp<ViewStyle>;
88
onPress: () => void;
9+
disabled?: boolean;
910
}
1011

11-
export const Button: React.FC<Props> = ({ children, style, onPress }) => {
12+
export const Button: React.FC<Props> = ({
13+
children,
14+
style,
15+
onPress,
16+
disabled,
17+
}) => {
1218
return (
13-
<PressableScale style={style} onPress={onPress}>
19+
<PressableScale style={style} onPress={onPress} enabled={!disabled}>
1420
{children}
1521
</PressableScale>
1622
);

dapps/pos-app/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ PODS:
13831383
- React-RCTFBReactNativeSpec
13841384
- ReactCommon/turbomodule/core
13851385
- ReactNativeDependencies
1386-
- react-native-compat (2.22.4):
1386+
- react-native-compat (2.23.0):
13871387
- hermes-engine
13881388
- RCTRequired
13891389
- RCTTypeSafety
@@ -2505,7 +2505,7 @@ SPEC CHECKSUMS:
25052505
React-logger: 7b234de35acb469ce76d6bbb0457f664d6f32f62
25062506
React-Mapbuffer: fbe1da882a187e5898bdf125e1cc6e603d27ecae
25072507
React-microtasksnativemodule: 76905804171d8ccbe69329fc84c57eb7934add7f
2508-
react-native-compat: ffd8fe04207a111865db4118342087a21acecb6c
2508+
react-native-compat: 9d75cf826b8e4962155c99375cf047cd075cf041
25092509
react-native-get-random-values: d16467cf726c618e9c7a8c3c39c31faa2244bbba
25102510
react-native-netinfo: cec9c4e86083cb5b6aba0e0711f563e2fbbff187
25112511
react-native-safe-area-context: 42a1b4f8774b577d03b53de7326e3d5757fe9513

0 commit comments

Comments
 (0)