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 60 61 62 63 64 65 66 67 68 69 | import { Text } from "@common/Text";
import { Box, Stack } from "@mui/material";
import { palette } from "@palette";
import { CheckIcon } from "@phosphor-icons/react";
import React, { useEffect } from "react";
function NewCompletedComponent({
isFromMobile,
updateProgress,
pahApproved = false,
}: {
isFromMobile?: boolean;
updateProgress?: () => void;
pahApproved?: boolean;
}) {
const title = isFromMobile
? "Your selfie has been uploaded"
: "ID and selfie successfully uploaded";
const subTitle = isFromMobile
? "See the final result on your desktop."
: "We’ll review your info and let you know the result soon.";
useEffect(() => updateProgress?.(), []);
return (
<Stack
px={isFromMobile ? "10px" : ""}
justifyContent="center"
alignItems="center"
minHeight="400px"
>
<Stack alignItems="center" width="100%" mb="24px">
<Box
display="flex"
height="64px"
borderRadius="64px"
width="64px"
bgcolor={palette.tag.success.bg}
alignItems="center"
justifyContent="center"
>
<CheckIcon fill={palette.filled.success} size={32} />
</Box>
</Stack>
<Text
textAlign="center"
fontWeight={271}
fontSize="24px"
color={palette.neutral[90]}
>
{title}
</Text>
{!pahApproved && (
<Text
textAlign="center"
mt="12px"
fontWeight={400}
fontSize="14px"
color={palette.filled.grey}
>
{subTitle}
</Text>
)}
</Stack>
);
}
export default NewCompletedComponent;
|