Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | 6x 4x 4x 10x 4x 10x 10x 4x | import GiveText from "@shared/Text/GiveText";
import { WarningIcon } from "@phosphor-icons/react";
import { styled, useAppTheme } from "@theme/v2/Provider";
import { Box, Grid } from "@mui/material";
import { useCustomThemeV2 } from "@theme/hooks/useCustomThemeV2";
function Prohibited() {
const { palette } = useAppTheme();
const { isMobileView } = useCustomThemeV2();
return (
<Container isMobileView={isMobileView}>
<BoxWrapper gap={2}>
<WarningIconContainer
bgcolor={palette.primitive?.transparent["darken-5"]}
>
<WarningIcon size="24px" color={palette?.text?.secondary} />
</WarningIconContainer>
<GiveText variant="bodyS" color="secondary" textAlign="center">
You’re currently not allowed to add a bank account. Contact your
provider for assistance. You may continue to the next step.
</GiveText>
</BoxWrapper>
</Container>
);
}
export default Prohibited;
const Container = styled(Grid)<{ isMobileView: boolean }>(
({ isMobileView }) => ({
display: "flex",
justifyContent: "center",
width: "100%",
padding: isMobileView ? "24px" : "40px",
paddingTop: isMobileView ? 0 : "40px",
height: "100%",
}),
);
const BoxWrapper = styled(Box)({
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
});
const WarningIconContainer = styled(Box)(
({ bgcolor }: { bgcolor?: string }) => ({
padding: "8px",
backgroundColor: bgcolor,
borderRadius: "64px",
width: "68px",
height: "68px",
display: "flex",
alignItems: "center",
justifyContent: "center",
}),
);
|