From 856e72e3bc04c703a68bd66f686b30f10d04eb52 Mon Sep 17 00:00:00 2001 From: Jennifer Echenim Date: Mon, 8 Jan 2024 22:00:01 +0400 Subject: [PATCH] [Gateway] Update expired Discord link and add warning msg to gateway UI (#1709) * Update gateway warning msg * update expired discord link in Tenscan * open links on blank page --- .../src/components/layouts/footer.tsx | 51 +++++++++++-------- tools/tenscan/frontend/src/lib/constants.ts | 2 +- .../src/components/layouts/footer.tsx | 51 +++++++++++-------- .../components/modules/home/disconnected.tsx | 20 +++----- 4 files changed, 69 insertions(+), 55 deletions(-) diff --git a/tools/tenscan/frontend/src/components/layouts/footer.tsx b/tools/tenscan/frontend/src/components/layouts/footer.tsx index 12ca506fa5..319c42835c 100644 --- a/tools/tenscan/frontend/src/components/layouts/footer.tsx +++ b/tools/tenscan/frontend/src/components/layouts/footer.tsx @@ -6,32 +6,41 @@ import { DiscordLogoIcon, } from "@radix-ui/react-icons"; +const SOCIAL_LINKS = [ + { + name: "GitHub", + href: socialLinks.github, + icon: GitHubLogoIcon, + }, + { + name: "Twitter", + href: socialLinks.twitter, + icon: TwitterLogoIcon, + }, + { + name: "Discord", + href: socialLinks.discord, + icon: DiscordLogoIcon, + }, +]; + export default function Footer() { return (
- - - - - - - - - + {SOCIAL_LINKS.map((item, index) => ( + + + + ))}

diff --git a/tools/tenscan/frontend/src/lib/constants.ts b/tools/tenscan/frontend/src/lib/constants.ts index c4047556f2..ebff60209e 100644 --- a/tools/tenscan/frontend/src/lib/constants.ts +++ b/tools/tenscan/frontend/src/lib/constants.ts @@ -1,6 +1,6 @@ export const socialLinks = { github: "https://github.com/ten-protocol", - discord: "https://discord.gg/2JQ2Z3r", + discord: "https://discord.gg/QJZ39Den7d", twitter: "https://twitter.com/tenprotocol", twitterHandle: "@tenprotocol", }; diff --git a/tools/walletextension/frontend/src/components/layouts/footer.tsx b/tools/walletextension/frontend/src/components/layouts/footer.tsx index 035216c2a4..401641c035 100644 --- a/tools/walletextension/frontend/src/components/layouts/footer.tsx +++ b/tools/walletextension/frontend/src/components/layouts/footer.tsx @@ -7,6 +7,24 @@ import { } from "@radix-ui/react-icons"; import { useWalletConnection } from "../providers/wallet-provider"; +const SOCIAL_LINKS = [ + { + name: "GitHub", + href: socialLinks.github, + icon: GitHubLogoIcon, + }, + { + name: "Twitter", + href: socialLinks.twitter, + icon: TwitterLogoIcon, + }, + { + name: "Discord", + href: socialLinks.discord, + icon: DiscordLogoIcon, + }, +]; + export default function Footer() { const { version } = useWalletConnection(); @@ -14,27 +32,18 @@ export default function Footer() {
- - - - - - - - - + {SOCIAL_LINKS.map((item, index) => ( + + + + ))}

diff --git a/tools/walletextension/frontend/src/components/modules/home/disconnected.tsx b/tools/walletextension/frontend/src/components/modules/home/disconnected.tsx index 33de612f4a..6e741517e8 100644 --- a/tools/walletextension/frontend/src/components/modules/home/disconnected.tsx +++ b/tools/walletextension/frontend/src/components/modules/home/disconnected.tsx @@ -75,19 +75,15 @@ const Disconnected = () => {

-

- RPC URL:{" "} - - {testnetUrls.default.url} - -

- +

RPC URL: {testnetUrls.default.url}

+ + + + You can only get your RPC link when you begin the connection + process. + +

Chain ID: {tenChainIDDecimal}