Navigate to sign with cosmos page if KYC verification is complete
This commit is contained in:
parent
a4cc95d9b8
commit
5f356c8bce
@ -32,7 +32,7 @@ const TermsAndConditionsCard = ({ handleAccept, handleRoleChange }: { handleAcce
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Paper elevation={3} style={{ padding: '2rem', marginTop: '2rem', display: isHidden ? "none" : "block" }}>
|
<Paper elevation={3} sx={{ padding: 2, marginTop: 2, display: isHidden ? "none" : "block", marginBottom: 3 }} >
|
||||||
<FormControl component="fieldset">
|
<FormControl component="fieldset">
|
||||||
<FormLabel component="legend">Select your role</FormLabel>
|
<FormLabel component="legend">Select your role</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
|
@ -83,8 +83,8 @@ const OnboardingSuccess = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginTop: "100px",
|
marginTop: 6,
|
||||||
gap: "10px",
|
gap: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography variant="h5">Transaction Successful</Typography>
|
<Typography variant="h5">Transaction Successful</Typography>
|
||||||
@ -96,6 +96,7 @@ const OnboardingSuccess = () => {
|
|||||||
backgroundColor: "lightgray",
|
backgroundColor: "lightgray",
|
||||||
padding: 3,
|
padding: 3,
|
||||||
wordWrap: "break-word",
|
wordWrap: "break-word",
|
||||||
|
marginBottom: 6,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<pre style={{ whiteSpace: "pre-wrap", margin: 0 }}>
|
<pre style={{ whiteSpace: "pre-wrap", margin: 0 }}>
|
||||||
@ -110,6 +111,7 @@ const OnboardingSuccess = () => {
|
|||||||
)}
|
)}
|
||||||
</pre>
|
</pre>
|
||||||
</Box>
|
</Box>
|
||||||
|
<Typography variant="h5">KYC Status</Typography>
|
||||||
{!loading && token && (
|
{!loading && token && (
|
||||||
<SumsubWebSdk
|
<SumsubWebSdk
|
||||||
accessToken={token}
|
accessToken={token}
|
||||||
|
@ -147,8 +147,8 @@ const SignWithCosmos = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginY: "100px",
|
marginTop: 6,
|
||||||
gap: "10px",
|
gap: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography variant="h5" display={`${isTncAccepted ? "none" : "block"}`}>Please accept terms and conditions to continue</Typography>
|
<Typography variant="h5" display={`${isTncAccepted ? "none" : "block"}`}>Please accept terms and conditions to continue</Typography>
|
||||||
@ -190,7 +190,10 @@ const SignWithCosmos = () => {
|
|||||||
</pre>
|
</pre>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box>
|
<Box
|
||||||
|
sx={{
|
||||||
|
paddingBottom: 2,
|
||||||
|
}}>
|
||||||
<LoadingButton
|
<LoadingButton
|
||||||
variant="contained"
|
variant="contained"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
|
@ -75,11 +75,11 @@ const SignWithNitroKey = () => {
|
|||||||
<div>
|
<div>
|
||||||
{session ? (
|
{session ? (
|
||||||
<Box
|
<Box
|
||||||
style={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginTop: "100px",
|
marginTop: 6,
|
||||||
gap: "10px",
|
gap: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography variant="h5">Sign with Nitro key</Typography>
|
<Typography variant="h5">Sign with Nitro key</Typography>
|
||||||
@ -130,7 +130,7 @@ const SignWithNitroKey = () => {
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
onClick={signEth}
|
onClick={signEth}
|
||||||
disabled={!Boolean(ethAddress)}
|
disabled={!Boolean(ethAddress)}
|
||||||
style={{ marginTop: "20px" }}
|
sx={{ marginTop: 2 }}
|
||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
>
|
>
|
||||||
Sign using Nitro key
|
Sign using Nitro key
|
||||||
|
@ -69,6 +69,9 @@ const UserVerification = () => {
|
|||||||
if ((payload as EventPayload<'idCheck.onApplicantStatusChanged'>).reviewStatus === 'pending') {
|
if ((payload as EventPayload<'idCheck.onApplicantStatusChanged'>).reviewStatus === 'pending') {
|
||||||
setApplicationSubmitted(true);
|
setApplicationSubmitted(true);
|
||||||
}
|
}
|
||||||
|
if ((payload as any).reviewResult.reviewAnswer === 'GREEN') {
|
||||||
|
setApplicationSubmitted(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -78,8 +81,8 @@ const UserVerification = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginTop: "100px",
|
marginTop: 12,
|
||||||
gap: "10px",
|
gap: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography variant="h5">User verification</Typography>
|
<Typography variant="h5">User verification</Typography>
|
||||||
|
Loading…
Reference in New Issue
Block a user