Compare commits

..

No commits in common. "aa700e3f0ab1c44305fd2b8bc8c0d53c76a8598f" and "d48f2aaac11865174df522f3161789bfd7f56a3a" have entirely different histories.

6 changed files with 8 additions and 80 deletions

View File

@ -5,4 +5,3 @@ REACT_APP_REGISTRY_GQL_ENDPOINT=http://localhost:9473/api
REACT_APP_LACONICD_RPC_ENDPOINT=http://localhost:26657 REACT_APP_LACONICD_RPC_ENDPOINT=http://localhost:26657
REACT_APP_LACONICD_DENOM=photon REACT_APP_LACONICD_DENOM=photon
REACT_APP_FAUCET_ENDPOINT=http://localhost:4000 REACT_APP_FAUCET_ENDPOINT=http://localhost:4000
REACT_APP_SUMSUB_TOKEN=

View File

@ -10,8 +10,6 @@
"@mui/icons-material": "^5.15.14", "@mui/icons-material": "^5.15.14",
"@mui/lab": "^5.0.0-alpha.169", "@mui/lab": "^5.0.0-alpha.169",
"@mui/material": "^5.15.14", "@mui/material": "^5.15.14",
"@sumsub/websdk": "^2.3.1",
"@sumsub/websdk-react": "^2.3.1",
"@walletconnect/encoding": "^1.0.2", "@walletconnect/encoding": "^1.0.2",
"@walletconnect/modal": "^2.6.2", "@walletconnect/modal": "^2.6.2",
"@walletconnect/sign-client": "^2.11.3", "@walletconnect/sign-client": "^2.11.3",
@ -53,9 +51,8 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.16.0", "@typescript-eslint/eslint-plugin": "^6.13.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", "@typescript-eslint/parser": "^6.13.2",
"@svgr/webpack": "^5.5.0",
"@testing-library/jest-dom": "^5.17.0", "@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0", "@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0", "@testing-library/user-event": "^13.5.0",
@ -63,8 +60,11 @@
"@types/node": "^16.18.90", "@types/node": "^16.18.90",
"@types/react": "^18.2.67", "@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22", "@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^6.13.2", "@babel/core": "^7.16.0",
"@typescript-eslint/parser": "^6.13.2", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
"@svgr/webpack": "^5.5.0",
"eslint-plugin-react": "^7.33.2",
"husky": "^9.0.11",
"babel-jest": "^27.4.2", "babel-jest": "^27.4.2",
"babel-loader": "^8.2.3", "babel-loader": "^8.2.3",
"babel-plugin-named-asset-import": "^0.3.8", "babel-plugin-named-asset-import": "^0.3.8",
@ -78,12 +78,10 @@
"dotenv-expand": "^5.1.0", "dotenv-expand": "^5.1.0",
"eslint": "^8.3.0", "eslint": "^8.3.0",
"eslint-config-react-app": "^7.0.1", "eslint-config-react-app": "^7.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-webpack-plugin": "^3.1.1", "eslint-webpack-plugin": "^3.1.1",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"fs-extra": "^10.0.0", "fs-extra": "^10.0.0",
"html-webpack-plugin": "^5.5.0", "html-webpack-plugin": "^5.5.0",
"husky": "^9.0.11",
"identity-obj-proxy": "^3.0.0", "identity-obj-proxy": "^3.0.0",
"jest": "^27.4.3", "jest": "^27.4.3",
"jest-resolve": "^27.4.2", "jest-resolve": "^27.4.2",

View File

@ -8,7 +8,6 @@ import PageNotFound from "./pages/PageNotFound";
import OnboardingSuccess from "./pages/OnboardingSuccess"; import OnboardingSuccess from "./pages/OnboardingSuccess";
import SignPageLayout from "./layout/SignPageLayout"; import SignPageLayout from "./layout/SignPageLayout";
import { WalletConnectProvider } from "./context/WalletConnectContext"; import { WalletConnectProvider } from "./context/WalletConnectContext";
import UserVerification from "./pages/UserVerification";
function App() { function App() {
return ( return (
@ -26,10 +25,6 @@ function App() {
path="/onboarding-success/:cosmosAddress" path="/onboarding-success/:cosmosAddress"
element={<OnboardingSuccess />} element={<OnboardingSuccess />}
></Route> ></Route>
<Route
path="/user-verification"
element={<UserVerification />}
></Route>
</Route> </Route>
<Route path="*" element={<PageNotFound />} /> <Route path="*" element={<PageNotFound />} />
</Routes> </Routes>

View File

@ -12,7 +12,7 @@ const ConnectWallet = () => {
useEffect(() => { useEffect(() => {
if (session) { if (session) {
navigate("/user-verification"); navigate("/sign-with-nitro-key");
} }
}, [session, navigate]); }, [session, navigate]);

View File

@ -1,54 +0,0 @@
import React from 'react'
import { Box, Typography } from '@mui/material'
import SumsubWebSdk from '@sumsub/websdk-react'
const UserVerification = () => {
const config = {
lang: "en", //language of WebSDK texts and comments (ISO 639-1 format)
// email: applicantEmail,
// phone: applicantPhone,
theme: "light",
}
const options = {
addViewportTag: false,
adaptIframeHeight: true
}
const accessTokenExpirationHandler = async () => {
return "Token expired";
}
const accessToken = {
"token": process.env.REACT_APP_SUMSUB_TOKEN,
"userId": "deepstack1234"
}
return (
<>
<Box
sx={{
display: "flex",
flexDirection: "column",
marginTop: "100px",
gap: "10px",
}}
>
<Typography variant="h5">User verification</Typography>
<div id="sumsub-websdk-container">
</div>
</Box>
<SumsubWebSdk
accessToken={accessToken.token}
expirationHandler={accessTokenExpirationHandler}
config={config}
options={options}
/>
</>
)
}
export default UserVerification

View File

@ -3015,16 +3015,6 @@
"@stablelib/random" "^1.0.2" "@stablelib/random" "^1.0.2"
"@stablelib/wipe" "^1.0.1" "@stablelib/wipe" "^1.0.1"
"@sumsub/websdk-react@^2.3.1":
version "2.3.1"
resolved "https://registry.yarnpkg.com/@sumsub/websdk-react/-/websdk-react-2.3.1.tgz#43345cbe8bfe08f38da172b8a8d282dcbca9cb17"
integrity sha512-v6ZKsz3DRBNRzB36hx4pPGlMJH7Biwso3YWVtApgb0pJlhWkONUnuokhd58qnA4qwAPQAamI5JOkjFL8qsFhmw==
"@sumsub/websdk@^2.3.1":
version "2.3.1"
resolved "https://registry.yarnpkg.com/@sumsub/websdk/-/websdk-2.3.1.tgz#20177e08dee8b15527c8a10722fa72d713e94b7f"
integrity sha512-pIxjLZybN+7eqVC7Hpl24Jf2Vk0ahsRuCO+wuNA8h4dna9AdnyjOxpxS4Akw7knNi8AHs4fQFHaDa9WfUPgTBQ==
"@surma/rollup-plugin-off-main-thread@^2.2.3": "@surma/rollup-plugin-off-main-thread@^2.2.3":
version "2.2.3" version "2.2.3"
resolved "https://registry.yarnpkg.com/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz#ee34985952ca21558ab0d952f00298ad2190c053" resolved "https://registry.yarnpkg.com/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz#ee34985952ca21558ab0d952f00298ad2190c053"