From a9f34987f21d385f4095623ef505bbbc2ba077ab Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Sun, 3 May 2026 17:18:48 +0300 Subject: [PATCH] change url to the ghost-connect Signed-off-by: Uncle Fatso --- package.json | 2 +- src/components/TopBar/GhostChainSelect.jsx | 2 +- src/constants/ecosystem.js | 2 ++ src/containers/Breakout/BreakoutModal.jsx | 3 ++- src/containers/Bridge/BridgeModal.jsx | 12 +++--------- src/containers/Bridge/ValidatorTable.jsx | 4 +++- 6 files changed, 12 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index d6766d8..7661a99 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ghost-dao-interface", "private": true, - "version": "0.7.32", + "version": "0.7.33", "type": "module", "scripts": { "dev": "vite", diff --git a/src/components/TopBar/GhostChainSelect.jsx b/src/components/TopBar/GhostChainSelect.jsx index b9699a9..25eb9a2 100644 --- a/src/components/TopBar/GhostChainSelect.jsx +++ b/src/components/TopBar/GhostChainSelect.jsx @@ -4,7 +4,7 @@ import { parseKnownToken } from "../../components/Token/Token"; import { useUnstableProvider } from "../../hooks/ghost"; import { PrimaryButton } from "../Button" -const GHOST_CONNECT = 'https://git.ghostchain.io/ghostchain/ghost-extension-wallet/releases'; +import { GHOST_CONNECT } from "../../constants/ecosystem"; function GhostChainSelect({ small }) { const { providerDetail, isConnected } = useUnstableProvider(); diff --git a/src/constants/ecosystem.js b/src/constants/ecosystem.js index 6853cde..5f613dd 100644 --- a/src/constants/ecosystem.js +++ b/src/constants/ecosystem.js @@ -1,5 +1,7 @@ import { NetworkId } from "../constants"; +const GHOST_CONNECT = "https://connect.ghostchain.io/"; + export const ECOSYSTEM = [ { name: "GHOST chain", diff --git a/src/containers/Breakout/BreakoutModal.jsx b/src/containers/Breakout/BreakoutModal.jsx index fc09172..74b44e9 100644 --- a/src/containers/Breakout/BreakoutModal.jsx +++ b/src/containers/Breakout/BreakoutModal.jsx @@ -16,6 +16,7 @@ import Token from "../../components/Token/Token"; import GhostStyledIcon from "../../components/Icon/GhostIcon"; import { PrimaryButton, SecondaryButton } from "../../components/Button"; import { GATEKEEPER_ADDRESSES, EMPTY_ADDRESS } from "../../constants/addresses"; +import { GHOST_CONNECT } from "../../constants/ecosystem"; import { useLocalStorage } from "../../hooks/localstorage"; import { useBreakoutModal } from "../../hooks/breakoutModal"; @@ -175,7 +176,7 @@ const BridgeView = ({ - Generate a unique address for per tx with GHOST connect for privacy. + Generate a unique address for per tx with GHOST connect for privacy. window.open( - 'https://git.ghostchain.io/ghostchain/ghost-extension-wallet/releases', - '_blank', - 'noopener,noreferrer' - )} + sx={{ marginTop: "0 !important", marginBottom: "0 !important" }} + onClick={() => window.open(GHOST_CONNECT, '_blank', 'noopener,noreferrer')} > Get GHOST Connect diff --git a/src/containers/Bridge/ValidatorTable.jsx b/src/containers/Bridge/ValidatorTable.jsx index 311d8dc..8cd671a 100644 --- a/src/containers/Bridge/ValidatorTable.jsx +++ b/src/containers/Bridge/ValidatorTable.jsx @@ -25,6 +25,8 @@ import GhostStyledIcon from "../../components/Icon/GhostIcon"; import InfoTooltip from "../../components/Tooltip/InfoTooltip"; import { PrimaryButton } from "../../components/Button"; +import { GHOST_CONNECT } from "../../constants/ecosystem"; + export const ValidatorTable = ({ currentTime, currentBlock, @@ -108,7 +110,7 @@ export const ValidatorTable = ({ GHOST Connect is not detected on your browser! Download GHOST Connect browser extension for real-time visibility into validator status and related transaction risks. Important: The GHOST Connect is optional, but be aware that your bridge transaction will succeed or fail irreversibly based on the condition of the validators. - window.open('https://git.ghostchain.io/ghostchain/ghost-extension-wallet/releases', '_blank', 'noopener,noreferrer')}> + window.open(GHOST_CONNECT, '_blank', 'noopener,noreferrer')}> Get GHOST Connect