Render KYC status if flag is enabled
This commit is contained in:
parent
2d1d7d36f2
commit
80ce257e00
@ -8,6 +8,7 @@ import SumsubWebSdk from "@sumsub/websdk-react";
|
|||||||
import { MessageHandler } from "@sumsub/websdk";
|
import { MessageHandler } from "@sumsub/websdk";
|
||||||
|
|
||||||
import { config, fetchAccessToken, getAccessTokenExpirationHandler, options } from "../utils/sumsub";
|
import { config, fetchAccessToken, getAccessTokenExpirationHandler, options } from "../utils/sumsub";
|
||||||
|
import { ENABLE_KYC } from "../constants";
|
||||||
|
|
||||||
interface Participant {
|
interface Participant {
|
||||||
cosmosAddress: string;
|
cosmosAddress: string;
|
||||||
@ -104,6 +105,8 @@ const OnboardingSuccess = () => {
|
|||||||
)}
|
)}
|
||||||
</pre>
|
</pre>
|
||||||
</Box>
|
</Box>
|
||||||
|
{ENABLE_KYC ? (
|
||||||
|
<Box>
|
||||||
<Typography variant="h5">KYC Status</Typography>
|
<Typography variant="h5">KYC Status</Typography>
|
||||||
{!loading && token && cosmosAddress && (
|
{!loading && token && cosmosAddress && (
|
||||||
<SumsubWebSdk
|
<SumsubWebSdk
|
||||||
@ -115,6 +118,9 @@ const OnboardingSuccess = () => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
) : ''
|
||||||
|
}
|
||||||
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ import React, { useState, useMemo, useEffect } from "react";
|
|||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { enqueueSnackbar } from "notistack";
|
import { enqueueSnackbar } from "notistack";
|
||||||
import canonicalStringify from "canonical-json";
|
import canonicalStringify from "canonical-json";
|
||||||
|
import { ethers } from "ethers";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Select,
|
Select,
|
||||||
@ -73,8 +74,9 @@ const SignWithNitroKey = () => {
|
|||||||
message,
|
message,
|
||||||
cosmosAddress,
|
cosmosAddress,
|
||||||
receivedEthSig,
|
receivedEthSig,
|
||||||
kycId,
|
kycIdHash,
|
||||||
}})
|
},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("err in signing ", error);
|
console.log("err in signing ", error);
|
||||||
|
Loading…
Reference in New Issue
Block a user