Commit ae47b77c by G

backgroundDefault already include the wrapper for left right and top

parent 84901f04
import BeasyLogoIcon from "@components/BeasyLogoIcon"; import BeasyLogoIcon from "@components/BeasyLogoIcon";
import WrapperTopEdgeCurved from "@components/WrapperTopEdgeCurved"; import WrapperTopEdgeCurved from "@components/WrapperTopEdgeCurved";
import Box from "@components/bases/Box"; import Box from "@components/bases/Box";
import SafeAreaViewTopLeftRightFull from "@components/containers/SafeAreaViewTopLeftRightFull";
import type { ReactElement } from "react"; import type { ReactElement } from "react";
import BackgroundDefault from "./BackgroundDefault"; import BackgroundDefault from "./BackgroundDefault";
const BackgroundWithBeasyIconAndWhiteContentArea = ({ children }: { children?: ReactElement }) => { const BackgroundWithBeasyIconAndWhiteContentArea = ({ children }: { children?: ReactElement }) => {
return ( return (
<BackgroundDefault> <BackgroundDefault>
<SafeAreaViewTopLeftRightFull> <Box
<Box px={"l"}
px={"l"} flexDirection={"row"}
flexDirection={"row"} justifyContent={"space-between"}
justifyContent={"space-between"} alignItems={"center"}
alignItems={"center"} mb={"m"}
mb={"m"} >
> <BeasyLogoIcon />
<BeasyLogoIcon /> </Box>
</Box> <WrapperTopEdgeCurved>{children}</WrapperTopEdgeCurved>
<WrapperTopEdgeCurved>{children}</WrapperTopEdgeCurved>
</SafeAreaViewTopLeftRightFull>
</BackgroundDefault> </BackgroundDefault>
); );
}; };
......
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