From 8dc44c445ff68ab7393af74d49090f23971e203d Mon Sep 17 00:00:00 2001 From: J M Rossy Date: Mon, 19 Sep 2022 12:44:34 -0400 Subject: [PATCH] Replace abacus URLs with hyperlane --- README.md | 6 +++--- package.json | 8 ++++---- src/components/nav/Footer.tsx | 37 +++++++---------------------------- src/components/nav/Header.tsx | 9 +++++---- src/consts/appConfig.ts | 2 +- src/consts/links.ts | 8 ++++++++ 6 files changed, 28 insertions(+), 42 deletions(-) create mode 100644 src/consts/links.ts diff --git a/README.md b/README.md index 5a5ca59..f794da2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Abacus Explorer App +# Hyperlane Explorer App -A multi-chain explorer app for the Abacus protocol and network. +A multi-chain explorer for the Hyperlane protocol and network. ## Setup @@ -31,4 +31,4 @@ yarn lint ## Learn more -For more information, see the [Abacus documentation](https://docs.useabacus.network/abacus-docs/developers/getting-started). +For more information, see the [Hyperlane documentation](https://docs.hyperlane.xyz/hyperlane-docs/). diff --git a/package.json b/package.json index 3f2b9ab..0c40c37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@abacus-network/explorer-app", - "description": "A multi-chain explorer app for the Abacus protocol and network.", + "name": "@hyperlane-xyz/explorer", + "description": "A multi-chain explorer for the Hyperlane protocol and network.", "version": "0.1.0", "author": "J M Rossy", "dependencies": { @@ -36,14 +36,14 @@ "ts-node": "^10.8.0", "typescript": "^4.7.4" }, - "homepage": "https://www.useabacus.network", + "homepage": "https://www.hyperlane.xyz", "license": "Apache-2.0", "main": "dist/src/index.js", "packageManager": "yarn@3.2.0", "private": true, "repository": { "type": "git", - "url": "https://github.com/abacus-network/abacus-explorer-app" + "url": "https://github.com/hyperlane-xyz/hyperlane-explorer" }, "scripts": { "clean": "rm -rf dist cache .next", diff --git a/src/components/nav/Footer.tsx b/src/components/nav/Footer.tsx index 0d02528..6832b12 100644 --- a/src/components/nav/Footer.tsx +++ b/src/components/nav/Footer.tsx @@ -1,5 +1,6 @@ import Image from 'next/future/image'; +import { links } from '../../consts/links'; import Book from '../../images/icons/book.svg'; import Briefcase from '../../images/icons/briefcase.svg'; import InfoCircle from '../../images/icons/info-circle.svg'; @@ -28,36 +29,12 @@ export function Footer() {
- - - - - - + + + + + +
diff --git a/src/components/nav/Header.tsx b/src/components/nav/Header.tsx index e4699c0..ed1dd55 100644 --- a/src/components/nav/Header.tsx +++ b/src/components/nav/Header.tsx @@ -3,6 +3,7 @@ import Link from 'next/link'; import useDropdownMenu from 'react-accessible-dropdown-menu-hook'; import { Environment, allConfigs, config } from '../../consts/appConfig'; +import { links } from '../../consts/links'; import BookIcon from '../../images/icons/book.svg'; import HamburgerIcon from '../../images/icons/hamburger.svg'; import HouseIcon from '../../images/icons/house.svg'; @@ -43,7 +44,7 @@ export function Header() { Docs @@ -51,7 +52,7 @@ export function Header() { About @@ -83,7 +84,7 @@ export function Header() { onClick={closeDropdown} className={styles.dropdownOption} target="_blank" - href="https://docs.useabacus.network" + href={links.docs} rel="noopener noreferrer" > @@ -93,7 +94,7 @@ export function Header() { onClick={closeDropdown} className={styles.dropdownOption} target="_blank" - href="https://www.useabacus.network" + href={links.home} rel="noopener noreferrer" > diff --git a/src/consts/appConfig.ts b/src/consts/appConfig.ts index 9b1d74b..607bae4 100644 --- a/src/consts/appConfig.ts +++ b/src/consts/appConfig.ts @@ -14,7 +14,7 @@ export const allConfigs: Record = { environment: Environment.Mainnet, debug: isDevMode, version, - url: 'https://abacus-explorer-app.vercel.app/', + url: 'https://hyperlane-explorer.vercel.app/', apiUrl: 'https://abacus-explorer-api.hasura.app/v1/graphql', }, testnet2: { diff --git a/src/consts/links.ts b/src/consts/links.ts new file mode 100644 index 0000000..cd59b83 --- /dev/null +++ b/src/consts/links.ts @@ -0,0 +1,8 @@ +export const links = { + home: 'https://www.hyperlane.xyz', + discord: 'https://discord.gg/VK9ZUy3aTV', + github: 'https://github.com/hyperlane-xyz', + docs: 'https://docs.hyperlane.xyz/hyperlane-docs', + jobs: 'https://jobs.lever.co/Abacus', + twitter: 'https://twitter.com/hyperlane_xyz', +};