From 0fb92f0ef6fce291703843f87230cc473f0d8567 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Tue, 16 Jul 2024 14:01:05 +0530 Subject: [PATCH] Replace Ethereum with Nitro --- README.md | 2 +- src/App.tsx | 4 ++-- src/pages/ConnectWallet.tsx | 2 +- .../{SignWithEthereum.tsx => SignWithNitroKey.tsx} | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) rename src/pages/{SignWithEthereum.tsx => SignWithNitroKey.tsx} (94%) diff --git a/README.md b/README.md index e58c3c7..b23fc5a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/App.tsx b/src/App.tsx index 1e5cc2a..50c6eac 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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() { } /> }> - } /> + } /> } diff --git a/src/pages/ConnectWallet.tsx b/src/pages/ConnectWallet.tsx index c54a46a..53b2c9f 100644 --- a/src/pages/ConnectWallet.tsx +++ b/src/pages/ConnectWallet.tsx @@ -12,7 +12,7 @@ const ConnectWallet = () => { useEffect(() => { if (session) { - navigate("/sign-with-ethereum"); + navigate("/sign-with-nitro-key"); } }, [session, navigate]); diff --git a/src/pages/SignWithEthereum.tsx b/src/pages/SignWithNitroKey.tsx similarity index 94% rename from src/pages/SignWithEthereum.tsx rename to src/pages/SignWithNitroKey.tsx index 5a3b5f2..038fda2 100644 --- a/src/pages/SignWithEthereum.tsx +++ b/src/pages/SignWithNitroKey.tsx @@ -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", }} > - Sign with ethereum key + Sign with Nitro key Select Cosmos account: - Select Ethereum account: + Select Nitro account: