Replace Ethereum
with Nitro
in UI
#1
@ -1,5 +1,5 @@
|
||||
# testnet-onboarding-app
|
||||
React app for onboarding participants to laconicd chain with Ethereum/Cosmos key attestation
|
||||
React app for onboarding participants to laconicd chain with Nitro/Cosmos key attestation
|
||||
|
||||
## Setup for testnet-onboarding-app
|
||||
|
||||
|
@ -2,7 +2,7 @@ import React from "react";
|
||||
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
||||
|
||||
import ConnectWallet from "./pages/ConnectWallet";
|
||||
import SignWithEthereum from "./pages/SignWithEthereum";
|
||||
import SignWithNitroKey from "./pages/SignWithNitroKey";
|
||||
import SignWithCosmos from "./pages/SignWithCosmos";
|
||||
import PageNotFound from "./pages/PageNotFound";
|
||||
import OnboardingSuccess from "./pages/OnboardingSuccess";
|
||||
@ -16,7 +16,7 @@ function App() {
|
||||
<Routes>
|
||||
<Route path="/" element={<ConnectWallet />} />
|
||||
<Route element={<SignPageLayout />}>
|
||||
<Route path="/sign-with-ethereum" element={<SignWithEthereum />} />
|
||||
<Route path="/sign-with-nitro-key" element={<SignWithNitroKey />} />
|
||||
<Route
|
||||
path="/sign-with-cosmos/:cosmosAddress/:ethSignature"
|
||||
element={<SignWithCosmos />}
|
||||
|
@ -12,7 +12,7 @@ const ConnectWallet = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (session) {
|
||||
navigate("/sign-with-ethereum");
|
||||
navigate("/sign-with-nitro-key");
|
||||
}
|
||||
}, [session, navigate]);
|
||||
|
||||
|
@ -14,7 +14,7 @@ import { utf8ToHex } from "@walletconnect/encoding";
|
||||
|
||||
import { useWalletConnectContext } from "../context/WalletConnectContext";
|
||||
|
||||
const SignWithEthereum = () => {
|
||||
const SignWithNitroKey = () => {
|
||||
const { session, signClient, checkPersistedState } =
|
||||
useWalletConnectContext();
|
||||
|
||||
@ -78,7 +78,7 @@ const SignWithEthereum = () => {
|
||||
gap: "10px",
|
||||
}}
|
||||
>
|
||||
<Typography variant="h5">Sign with ethereum key</Typography>
|
||||
<Typography variant="h5">Sign with Nitro key</Typography>
|
||||
<Typography variant="body1">Select Cosmos account:</Typography>
|
||||
<Select
|
||||
labelId="demo-simple-select-label"
|
||||
@ -95,7 +95,7 @@ const SignWithEthereum = () => {
|
||||
</MenuItem>
|
||||
))}
|
||||
</Select>
|
||||
<Typography variant="body1">Select Ethereum account: </Typography>
|
||||
<Typography variant="body1">Select Nitro account: </Typography>
|
||||
<Select
|
||||
labelId="demo-simple-select-label"
|
||||
id="demo-simple-select"
|
||||
@ -129,7 +129,7 @@ const SignWithEthereum = () => {
|
||||
style={{ marginTop: "20px" }}
|
||||
loading={isLoading}
|
||||
>
|
||||
Sign using Ethereum key
|
||||
Sign using Nitro key
|
||||
</LoadingButton>
|
||||
</Box>
|
||||
<SnackbarProvider />
|
||||
@ -141,4 +141,4 @@ const SignWithEthereum = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default SignWithEthereum;
|
||||
export default SignWithNitroKey;
|
Loading…
Reference in New Issue
Block a user