Commit 1a7556cf by G

updated with the card created for the moment

parent f2c66620
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 BarWithBeasyAndNotificationsIcon from "@components/BarWithBeasyAndNotificationsIcon"; import BarWithBeasyAndNotificationsIcon from "@components/BarWithBeasyAndNotificationsIcon";
import PaymentOption from "@components/PaymentOption";
import Box from "@components/bases/Box"; import Box from "@components/bases/Box";
import WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight from "@components/wrappers/WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight";
import { LOG } from "@logger"; import { LOG } from "@logger";
import Card from "@re-card";
import Text from "@re-text";
import { useQuery } from "@tanstack/react-query"; import { useQuery } from "@tanstack/react-query";
import { useMemo } from "react"; import { useMemo } from "react";
import { Dimensions } from "react-native"; import { Dimensions } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
const log = LOG.extend("HomePageWithPaymentOptions"); const log = LOG.extend("HomePageWithPaymentOptions");
...@@ -33,14 +36,16 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith ...@@ -33,14 +36,16 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith
return ( return (
// <BeasyDefaultBackgroundWrapper> // <BeasyDefaultBackgroundWrapper>
<SafeAreaView> <WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight>
<Box style={{ height: "100%" }}> <Box style={{ height: "100%" }} flexDirection={"column"}>
<BarWithBeasyAndNotificationsIcon /> <BarWithBeasyAndNotificationsIcon />
{/* <Box height={150} alignItems={"center"} justifyContent={"center"}> <Card
<BalanceContainer balance={78000} label="Total des ventes" /> variant={"curvedTopContainer"}
</Box> */} height={Dimensions.get("window").height / 2 + 150}
// marginTop={"auto"}
{/* <Box flex={1} p={"l"}> style={{ marginTop: "auto" }}
padding={"l"}
>
<Box height={100}> <Box height={100}>
<Text fontSize={20} fontWeight={"bold"}> <Text fontSize={20} fontWeight={"bold"}>
Types de paiement Types de paiement
...@@ -67,21 +72,21 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith ...@@ -67,21 +72,21 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith
<PaymentOptionContainer key={paymentType.id}> <PaymentOptionContainer key={paymentType.id}>
<PaymentOption <PaymentOption
onPress={() => onPress={() =>
navigation.navigate( navigation.navigate("paymentAmountInputScreen", {
"paymentAmountInputScreen",
{
paymentType: paymentType.code, paymentType: paymentType.code,
}, })
)
} }
paymentMethod={paymentType.code} paymentMethod={paymentType.code}
/> />
</PaymentOptionContainer> </PaymentOptionContainer>
))} ))}
</Box> </Box>
</Card>
{/* <Box height={150} alignItems={"center"} justifyContent={"center"}>
<BalanceContainer balance={78000} label="Total des ventes" />
</Box> */} </Box> */}
</Box> </Box>
</SafeAreaView> </WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight>
// </BeasyDefaultBackgroundWrapper> // </BeasyDefaultBackgroundWrapper>
); );
}; };
......
import Box from "@components/bases/Box";
import {} from "react";
import {} from "react-native";
import { useUserAuthenticationContext } from "@/contexts/UserAuthenticationContext"; import { useUserAuthenticationContext } from "@/contexts/UserAuthenticationContext";
import BarWithBeasyAndNotificationsIcon from "@components/BarWithBeasyAndNotificationsIcon";
import Button from "@components/Button"; import Button from "@components/Button";
import BackgroundWithBeasyIconAndWhiteContentArea from "@components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea"; import Box from "@components/bases/Box";
import Text from "@components/bases/Text"; import Text from "@components/bases/Text";
import WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight from "@components/wrappers/WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight";
import { LOG } from "@logger"; import { LOG } from "@logger";
import Card from "@re-card";
const log = LOG.extend("UserProfileScreen"); const log = LOG.extend("UserProfileScreen");
const UserProfileScreen = () => { const UserProfileScreen = () => {
...@@ -17,10 +16,16 @@ const UserProfileScreen = () => { ...@@ -17,10 +16,16 @@ const UserProfileScreen = () => {
const { userInformations } = useUserAuthenticationContext(); const { userInformations } = useUserAuthenticationContext();
return ( return (
<BackgroundWithBeasyIconAndWhiteContentArea> <WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight>
<> <>
<Box px={"m"} mt={"m"} gap={"m"}> <BarWithBeasyAndNotificationsIcon />
{/* User Informations */} <Card
variant="curvedTopContainer"
height={"100%"}
padding={"m"}
gap={"m"}
marginTop={"m"}
>
<Box <Box
width={"100%"} width={"100%"}
// height={200} // height={200}
...@@ -163,9 +168,9 @@ const UserProfileScreen = () => { ...@@ -163,9 +168,9 @@ const UserProfileScreen = () => {
<Text textAlign={"center"}>{userInformations.marchand.url_echec}</Text> <Text textAlign={"center"}>{userInformations.marchand.url_echec}</Text>
</Box> </Box>
</Box> </Box>
</Box> </Card>
</> </>
</BackgroundWithBeasyIconAndWhiteContentArea> </WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight>
); );
}; };
......
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