Commit ae47b77c by G

backgroundDefault already include the wrapper for left right and top

parent 84901f04
import BeasyLogoIcon from "@components/BeasyLogoIcon";
import WrapperTopEdgeCurved from "@components/WrapperTopEdgeCurved";
import Box from "@components/bases/Box";
import SafeAreaViewTopLeftRightFull from "@components/containers/SafeAreaViewTopLeftRightFull";
import type { ReactElement } from "react";
import BackgroundDefault from "./BackgroundDefault";
const BackgroundWithBeasyIconAndWhiteContentArea = ({ children }: { children?: ReactElement }) => {
return (
<BackgroundDefault>
<SafeAreaViewTopLeftRightFull>
<Box
px={"l"}
flexDirection={"row"}
......@@ -19,7 +17,6 @@ const BackgroundWithBeasyIconAndWhiteContentArea = ({ children }: { children?: R
<BeasyLogoIcon />
</Box>
<WrapperTopEdgeCurved>{children}</WrapperTopEdgeCurved>
</SafeAreaViewTopLeftRightFull>
</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