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;