From 1c8d78b345354992f2b6b7de7c5b56583a279577 Mon Sep 17 00:00:00 2001 From: G Date: Wed, 11 Sep 2024 11:02:39 +0000 Subject: [PATCH] renamed the component --- src/components/backgrounds/BackgroundDefault.tsx | 17 ----------------- src/components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx | 2 +- src/components/backgrounds/BeasyDefaultBackgroundWrapper.tsx | 17 +++++++++++++++++ src/screens/PaymentAmountInputScreen.tsx | 6 +++--- src/screens/PaymentResultScreen.tsx | 6 +++--- src/screens/UserLoginScreen.tsx | 6 +++--- 6 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 src/components/backgrounds/BackgroundDefault.tsx create mode 100644 src/components/backgrounds/BeasyDefaultBackgroundWrapper.tsx diff --git a/src/components/backgrounds/BackgroundDefault.tsx b/src/components/backgrounds/BackgroundDefault.tsx deleted file mode 100644 index 5f11d8d..0000000 --- a/src/components/backgrounds/BackgroundDefault.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { images } from "@styles/Commons"; -import { ImageBackground } from "react-native"; - -type Props = { children: React.ReactNode }; - -const BackgroundDefault = ({ children }: Props) => { - return ( - - {children} - - ); -}; - -export default BackgroundDefault; diff --git a/src/components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx b/src/components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx index 775ed91..c52287b 100644 --- a/src/components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx +++ b/src/components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea.tsx @@ -4,7 +4,7 @@ import WrapperTopEdgeCurved from "@components/WrapperTopEdgeCurved"; import Box from "@components/bases/Box"; import { useNavigation } from "@react-navigation/native"; import type { ReactElement } from "react"; -import BackgroundDefault from "./BackgroundDefault"; +import BackgroundDefault from "./BeasyDefaultBackgroundWrapper"; const BackgroundWithBeasyIconAndWhiteContentArea = ({ children, diff --git a/src/components/backgrounds/BeasyDefaultBackgroundWrapper.tsx b/src/components/backgrounds/BeasyDefaultBackgroundWrapper.tsx new file mode 100644 index 0000000..5f11d8d --- /dev/null +++ b/src/components/backgrounds/BeasyDefaultBackgroundWrapper.tsx @@ -0,0 +1,17 @@ +import { images } from "@styles/Commons"; +import { ImageBackground } from "react-native"; + +type Props = { children: React.ReactNode }; + +const BackgroundDefault = ({ children }: Props) => { + return ( + + {children} + + ); +}; + +export default BackgroundDefault; diff --git a/src/screens/PaymentAmountInputScreen.tsx b/src/screens/PaymentAmountInputScreen.tsx index 24cd51d..6c57f8c 100644 --- a/src/screens/PaymentAmountInputScreen.tsx +++ b/src/screens/PaymentAmountInputScreen.tsx @@ -5,7 +5,7 @@ import Button from "@components/Button"; import GoBackIconButton from "@components/GoBackIconButton"; import InputWithTopLabel from "@components/InputWithTopLabel"; import PaymentOption from "@components/PaymentOption"; -import BackgroundDefault from "@components/backgrounds/BackgroundDefault"; +import BeasyDefaultBackgroundWrapper from "@components/backgrounds/BeasyDefaultBackgroundWrapper"; import Box from "@components/bases/Box"; import Text from "@components/bases/Text"; import useOrangeMoney from "@hooks/useOrangeMoney"; @@ -92,7 +92,7 @@ const PaymentAmountInputScreen: PaymentStackScreenComponentProps<"paymentAmountI ]); return ( - + {/* */} {transactionsStatusMutation.isPending && } @@ -150,7 +150,7 @@ const PaymentAmountInputScreen: PaymentStackScreenComponentProps<"paymentAmountI {/* */} - + ); }; diff --git a/src/screens/PaymentResultScreen.tsx b/src/screens/PaymentResultScreen.tsx index 4fee2e7..8c22698 100644 --- a/src/screens/PaymentResultScreen.tsx +++ b/src/screens/PaymentResultScreen.tsx @@ -2,7 +2,7 @@ import type { MainStackScreenComponentProps } from "@/navigations/Types"; import BeasyLogoIcon from "@components/BeasyLogoIcon"; import Button from "@components/Button"; import GoBackIconButton from "@components/GoBackIconButton"; -import BackgroundDefault from "@components/backgrounds/BackgroundDefault"; +import BeasyDefaultBackgroundWrapper from "@components/backgrounds/BeasyDefaultBackgroundWrapper"; import Box from "@components/bases/Box"; import Text from "@components/bases/Text"; import CheckIcon from "@components/icons/CheckIcon"; @@ -20,7 +20,7 @@ const PaymentResultScreen: MainStackScreenComponentProps<"paymentResultScreen"> const insets = useSafeAreaInsets(); log.debug("insets", insets); return ( - + - + ); }; diff --git a/src/screens/UserLoginScreen.tsx b/src/screens/UserLoginScreen.tsx index 10345b3..ec143db 100644 --- a/src/screens/UserLoginScreen.tsx +++ b/src/screens/UserLoginScreen.tsx @@ -3,7 +3,7 @@ import type { MainStackScreenComponentProps } from "@/navigations/Types"; import Button from "@components/Button"; import ContainerBorderTopCurved from "@components/ContainerBorderTopCurved"; import InputWithTopLabel from "@components/InputWithTopLabel"; -import BackgroundDefault from "@components/backgrounds/BackgroundDefault"; +import BeasyDefaultBackgroundWrapper from "@components/backgrounds/BeasyDefaultBackgroundWrapper"; import Box from "@components/bases/Box"; import Text from "@components/bases/Text"; import { Fontisto } from "@expo/vector-icons"; @@ -27,7 +27,7 @@ const UserLoginScreen: MainStackScreenComponentProps<"userLoginScreen"> = ({ nav }, [email, password, login]); return ( - + = ({ nav - + ); }; -- libgit2 0.27.1