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 70 71 72 73 74 75 76 77 78 79 80 81 | import useNiceModal from "@common/Modal/ModalFactory/hooks/useNiceModal";
import NiceModal from "@ebay/nice-modal-react";
import { Stack } from "@mui/material";
import { BellRingingIcon } from "@phosphor-icons/react";
import GivePopup from "@shared/Popup/GivePopup";
import GiveText from "@shared/Text/GiveText";
import { useCustomThemeV2 } from "@theme/hooks/useCustomThemeV2";
import { useAppTheme } from "@theme/v2/Provider";
type Props = {
merchantName: string;
};
const MerchantOnboardingFinishModal = NiceModal.create(
({ merchantName }: Props) => {
const { onClose, open } = useNiceModal();
const { isMobileView } = useCustomThemeV2();
const { palette } = useAppTheme();
return (
<GivePopup
type="success"
iconType="success-regular"
title="Onboarding completed"
description={
"Your merchant profile is now under review. We’ll reach out if further details are required. In the meantime, feel free to explore the Merchant Portal."
}
open={open}
onClose={onClose}
isMobile={isMobileView}
inputNodes={[
{
element: (
<Stack
direction="row"
gap="14px"
padding="12px"
borderRadius="8px"
alignItems="center"
sx={{
background: palette.primitive?.transparent["darken-5"],
}}
>
<BellRingingIcon size={32} />
<GiveText variant="bodyS">
Keep an eye on your email and Merchant Portal notifications
for updates or additional requests from our team.
</GiveText>
</Stack>
),
},
]}
buttons={[
{
label: "Close",
onClick: onClose,
variant: "filled",
sxButton: { border: "none", margin: "0 !important" },
submitType: "submit",
},
]}
paperSx={{
...(isMobileView && {
maxHeight: "fit-content !important",
"& .MuiDialogActions-root": {
flexDirection: "row",
justifyContent: "flex-end",
},
"& button": {
width: "fit-content !important",
},
}),
top: "0 !important",
}}
/>
);
},
);
export default MerchantOnboardingFinishModal;
|