Commit 29387b99 by G

renamed again since i'll need a folder named wrapper

parent 1c8d78b3
...@@ -4,7 +4,7 @@ import WrapperTopEdgeCurved from "@components/WrapperTopEdgeCurved"; ...@@ -4,7 +4,7 @@ import WrapperTopEdgeCurved from "@components/WrapperTopEdgeCurved";
import Box from "@components/bases/Box"; import Box from "@components/bases/Box";
import { useNavigation } from "@react-navigation/native"; import { useNavigation } from "@react-navigation/native";
import type { ReactElement } from "react"; import type { ReactElement } from "react";
import BackgroundDefault from "./BeasyDefaultBackgroundWrapper"; import BackgroundDefault from "./BeasyDefaultBackground";
const BackgroundWithBeasyIconAndWhiteContentArea = ({ const BackgroundWithBeasyIconAndWhiteContentArea = ({
children, children,
......
...@@ -3,15 +3,12 @@ import { ImageBackground } from "react-native"; ...@@ -3,15 +3,12 @@ import { ImageBackground } from "react-native";
type Props = { children: React.ReactNode }; type Props = { children: React.ReactNode };
const BackgroundDefault = ({ children }: Props) => { const BeasyDefaultBackground = ({ children }: Props) => {
return ( return (
<ImageBackground <ImageBackground source={require("../../../assets/background.png")} style={images.cover}>
source={require("../../../assets/background.png")}
style={images.background}
>
{children} {children}
</ImageBackground> </ImageBackground>
); );
}; };
export default BackgroundDefault; export default BeasyDefaultBackground;
import type { PaymentStackScreenComponentProps } from "@/navigations/Types"; import type { PaymentStackScreenComponentProps } from "@/navigations/Types";
import getPaymentTypes from "@/utils/requests/getPaymentTypes"; import getPaymentTypes from "@/utils/requests/getPaymentTypes";
import BalanceContainer from "@components/BalanceContainer"; import BarWithBeasyAndNotificationsIcon from "@components/BarWithBeasyAndNotificationsIcon";
import BeasyLogoIcon from "@components/BeasyLogoIcon";
import NotificationIconButton from "@components/NotificationIconButton";
import PaymentOption from "@components/PaymentOption";
import BackgroundGreenWhiteContentArea from "@components/backgrounds/BackgroundGreenWhiteContentArea";
import Box from "@components/bases/Box"; import Box from "@components/bases/Box";
import Text from "@components/bases/Text";
import { LOG } from "@logger"; import { LOG } from "@logger";
import { useQuery } from "@tanstack/react-query"; import { useQuery } from "@tanstack/react-query";
import { useMemo } from "react"; import { useMemo } from "react";
...@@ -37,28 +32,21 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith ...@@ -37,28 +32,21 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith
); );
return ( return (
<BackgroundGreenWhiteContentArea> // <BeasyDefaultBackgroundWrapper>
<SafeAreaView> <SafeAreaView>
<Box style={{ height: "100%" }}> <Box style={{ height: "100%" }}>
<Box <BarWithBeasyAndNotificationsIcon />
px={"l"} {/* <Box height={150} alignItems={"center"} justifyContent={"center"}>
flexDirection={"row"}
justifyContent={"space-between"}
alignItems={"center"}
>
<BeasyLogoIcon />
<NotificationIconButton />
</Box>
<Box height={150} alignItems={"center"} justifyContent={"center"}>
<BalanceContainer balance={78000} label="Total des ventes" /> <BalanceContainer balance={78000} label="Total des ventes" />
</Box> </Box> */}
<Box flex={1} p={"l"}>
{/* <Box flex={1} p={"l"}>
<Box height={100}> <Box height={100}>
<Text fontSize={20} fontWeight={"bold"}> <Text fontSize={20} fontWeight={"bold"}>
Types de paiement Types de paiement
</Text> </Text>
</Box> </Box>
{/* <Box flexDirection={"row"} justifyContent={"space-between"} mb={"s"}> */}
<Box <Box
flex={1} flex={1}
flexDirection={"row"} flexDirection={"row"}
...@@ -91,10 +79,10 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith ...@@ -91,10 +79,10 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith
</PaymentOptionContainer> </PaymentOptionContainer>
))} ))}
</Box> </Box>
</Box> </Box> */}
</Box> </Box>
</SafeAreaView> </SafeAreaView>
</BackgroundGreenWhiteContentArea> // </BeasyDefaultBackgroundWrapper>
); );
}; };
......
...@@ -5,7 +5,7 @@ import Button from "@components/Button"; ...@@ -5,7 +5,7 @@ import Button from "@components/Button";
import GoBackIconButton from "@components/GoBackIconButton"; import GoBackIconButton from "@components/GoBackIconButton";
import InputWithTopLabel from "@components/InputWithTopLabel"; import InputWithTopLabel from "@components/InputWithTopLabel";
import PaymentOption from "@components/PaymentOption"; import PaymentOption from "@components/PaymentOption";
import BeasyDefaultBackgroundWrapper from "@components/backgrounds/BeasyDefaultBackgroundWrapper"; import BeasyDefaultBackgroundWrapper from "@components/backgrounds/BeasyDefaultBackground";
import Box from "@components/bases/Box"; import Box from "@components/bases/Box";
import Text from "@components/bases/Text"; import Text from "@components/bases/Text";
import useOrangeMoney from "@hooks/useOrangeMoney"; import useOrangeMoney from "@hooks/useOrangeMoney";
......
...@@ -2,7 +2,7 @@ import type { MainStackScreenComponentProps } from "@/navigations/Types"; ...@@ -2,7 +2,7 @@ import type { MainStackScreenComponentProps } from "@/navigations/Types";
import BeasyLogoIcon from "@components/BeasyLogoIcon"; import BeasyLogoIcon from "@components/BeasyLogoIcon";
import Button from "@components/Button"; import Button from "@components/Button";
import GoBackIconButton from "@components/GoBackIconButton"; import GoBackIconButton from "@components/GoBackIconButton";
import BeasyDefaultBackgroundWrapper from "@components/backgrounds/BeasyDefaultBackgroundWrapper"; import BeasyDefaultBackgroundWrapper from "@components/backgrounds/BeasyDefaultBackground";
import Box from "@components/bases/Box"; import Box from "@components/bases/Box";
import Text from "@components/bases/Text"; import Text from "@components/bases/Text";
import CheckIcon from "@components/icons/CheckIcon"; import CheckIcon from "@components/icons/CheckIcon";
......
...@@ -3,7 +3,7 @@ import type { MainStackScreenComponentProps } from "@/navigations/Types"; ...@@ -3,7 +3,7 @@ import type { MainStackScreenComponentProps } from "@/navigations/Types";
import Button from "@components/Button"; import Button from "@components/Button";
import ContainerBorderTopCurved from "@components/ContainerBorderTopCurved"; import ContainerBorderTopCurved from "@components/ContainerBorderTopCurved";
import InputWithTopLabel from "@components/InputWithTopLabel"; import InputWithTopLabel from "@components/InputWithTopLabel";
import BeasyDefaultBackgroundWrapper from "@components/backgrounds/BeasyDefaultBackgroundWrapper"; import BeasyDefaultBackgroundWrapper from "@components/backgrounds/BeasyDefaultBackground";
import Box from "@components/bases/Box"; import Box from "@components/bases/Box";
import Text from "@components/bases/Text"; import Text from "@components/bases/Text";
import { Fontisto } from "@expo/vector-icons"; import { Fontisto } from "@expo/vector-icons";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment