From 6e3f68c10016a589e651867bb86254bc436ce251 Mon Sep 17 00:00:00 2001 From: Nabarun Date: Tue, 16 Jul 2024 09:01:47 +0000 Subject: [PATCH] Replace `Ethereum` with `Nitro` in UI (#1) Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675) Co-authored-by: IshaVenikar Reviewed-on: https://git.vdb.to/cerc-io/testnet-onboarding-app/pulls/1 Co-authored-by: Nabarun Co-committed-by: Nabarun --- README.md | 2 +- package.json | 2 +- src/App.tsx | 4 ++-- src/pages/ConnectWallet.tsx | 2 +- .../{SignWithEthereum.tsx => SignWithNitroKey.tsx} | 10 +++++----- yarn.lock | 9 +++++---- 6 files changed, 15 insertions(+), 14 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/package.json b/package.json index dbcc5c0..fbee887 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@cerc-io/registry-sdk": "^0.2.1", + "@cerc-io/registry-sdk": "^0.2.2", "@cosmjs/stargate": "^0.32.4", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.0", 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: