From 7cf8ebcf0baa972b85ef5937b9b71d0f9b5e6d39 Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Sun, 12 Apr 2026 11:58:09 +0300 Subject: [PATCH] governance exists on all chains Signed-off-by: Uncle Fatso --- package.json | 2 +- src/App.jsx | 8 ++++---- src/components/Sidebar/NavContent.jsx | 4 ++-- src/constants.ts | 16 ---------------- 4 files changed, 7 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index f0d8d95..b710332 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ghost-dao-interface", "private": true, - "version": "0.7.15", + "version": "0.7.16", "type": "module", "scripts": { "dev": "vite", diff --git a/src/App.jsx b/src/App.jsx index e89bde9..442b940 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -22,7 +22,7 @@ import Sidebar from "./components/Sidebar/Sidebar"; import TopBar from "./components/TopBar/TopBar"; import { shouldTriggerSafetyCheck } from "./helpers"; -import { isNetworkAvailable, isGovernanceAvailable } from "./constants"; +import { isNetworkAvailable } from "./constants"; import useTheme from "./hooks/useTheme"; import { useUnstableProvider } from "./hooks/ghost"; import { dark as darkTheme } from "./themes/dark.js"; @@ -219,9 +219,9 @@ function App() { } /> } /> } /> - {isGovernanceAvailable(chainId, addressChainId) && } />} - {isGovernanceAvailable(chainId, addressChainId) && } />} - {isGovernanceAvailable(chainId, addressChainId) && } />} + } /> + } /> + } /> } { } /> - {isGovernanceAvailable(chainId, addressChainId) && } + diff --git a/src/constants.ts b/src/constants.ts index 2fca6d9..84cf712 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -4,22 +4,6 @@ export enum NetworkId { TESTNET_MORDOR = 63, } -export const isGovernanceAvailable = (chainId, addressChainId) => { - chainId = addressChainId ? addressChainId : chainId; - let exists = false; - switch (chainId) { - case 11155111: - exists = true - break; - case 63: - exists = true - break; - default: - break; - } - return exists; -} - export const isNetworkAvailable = (chainId, addressChainId) => { chainId = addressChainId ? addressChainId : chainId; let exists = false;