From bd9cd55ba496fb8d5c180a413392692033b41155 Mon Sep 17 00:00:00 2001 From: G Date: Sat, 6 Sep 2025 15:40:05 +0000 Subject: [PATCH] refactor: PaymentResultScreen no longer have dependencies on old components such as Box. --- src/screens/PaymentResultScreen.tsx | 231 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------------------------------------- 1 file changed, 108 insertions(+), 123 deletions(-) diff --git a/src/screens/PaymentResultScreen.tsx b/src/screens/PaymentResultScreen.tsx index 64f0ba1..2a42c56 100644 --- a/src/screens/PaymentResultScreen.tsx +++ b/src/screens/PaymentResultScreen.tsx @@ -1,14 +1,12 @@ +import { asp as g } from "@asp/asp"; +import { BarnoinPayBackground } from "@components/BarnoinPayBackground"; import BeasyLogoIcon from "@components/BeasyLogoIcon"; -import Button from "@components/Button"; -import BeasyDefaultBackgroundWrapper from "@components/backgrounds/BeasyDefaultBackground"; -import Box from "@components/bases/Box"; -import Text from "@components/bases/Text"; -import GoBackIconButton from "@components/GoBackIconButton"; +import * as Button from "@components/ButtonNew"; import CheckIcon from "@components/icons/CheckIcon"; +import { AntDesign } from "@expo/vector-icons"; import { LOG } from "@logger"; -import { CommonActions } from "@react-navigation/native"; -// import { Text } from "react-native"; -import { SafeAreaView, useSafeAreaInsets } from "react-native-safe-area-context"; +import { Text, View } from "react-native"; +import { useSafeAreaInsets } from "react-native-safe-area-context"; import type { MainStackScreenComponentProps } from "@/navigations/types"; const log = LOG.extend("PaymentResultScreen"); @@ -20,122 +18,109 @@ const PaymentResultScreen: MainStackScreenComponentProps<"paymentResultScreen"> const insets = useSafeAreaInsets(); log.debug("insets", insets); return ( - - - + + + navigation.goBack()} + /> + + + - - - { - navigation.dispatch( - CommonActions.reset({ - index: 1, - routes: [{ name: "appBottomTabsNavigator" }], - }), - ); - }} - /> - - - - - - - Transactions effectué avec succès ! - -