From 733f6d70ccbfd7e33b9178b437f50176f748215a Mon Sep 17 00:00:00 2001 From: Sero <69639595+Seroxdesign@users.noreply.github.com> Date: Mon, 5 Feb 2024 06:00:18 -0500 Subject: [PATCH 1/2] fix by adding OP --- packages/web/utils/networks.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/web/utils/networks.ts b/packages/web/utils/networks.ts index b64d36158..28e2860dc 100644 --- a/packages/web/utils/networks.ts +++ b/packages/web/utils/networks.ts @@ -16,6 +16,7 @@ export const GOERLI = '0x5'; export const GNOSIS = '0x64'; export const POLYGON = '0x89'; export const MUMBAI = '0x013881'; +export const OPTIMISM = '0xa'; export const NETWORK_INFO: NetworkInfo = { [MAINNET]: { @@ -58,6 +59,14 @@ export const NETWORK_INFO: NetworkInfo = { explorer: 'https://mumbai.polygonscan.com', rpc: 'https://matic-mumbai.chainstacklabs.com', }, + [OPTIMISM]: { + chainId: OPTIMISM, + name: 'Optimism', + label: 'Optimism', + symbol: 'ETH', + explorer: 'https://optimistic.etherscan.io/', + rpc: 'https://op-pokt.nodies.app', + }, }; export function getHexChainId(chain?: string): string { From 8ac2800208dbf968fc32a42e4f47c7269b5b915d Mon Sep 17 00:00:00 2001 From: Sero <69639595+Seroxdesign@users.noreply.github.com> Date: Mon, 5 Feb 2024 10:33:40 -0500 Subject: [PATCH 2/2] fix pb --- packages/design-system/src/MetaTile.tsx | 3 +- .../Landing/LandingConnectButton.tsx | 6 ---- packages/web/utils/questChains.ts | 32 ++----------------- 3 files changed, 4 insertions(+), 37 deletions(-) diff --git a/packages/design-system/src/MetaTile.tsx b/packages/design-system/src/MetaTile.tsx index e3af45d3f..efdb4e52f 100644 --- a/packages/design-system/src/MetaTile.tsx +++ b/packages/design-system/src/MetaTile.tsx @@ -236,7 +236,6 @@ export const MetaTilePathPlaybook = React.forwardRef< direction="column" position="absolute" zIndex={2} - bgColor="whiteAlpha.200" border={{ base: '1px solid rgba(255, 255, 255, 0.12)', xl: '2px solid rgba(255, 255, 255, 0.12)', @@ -317,7 +316,7 @@ export const MetaTilePathCosmetics: React.FC = ({ width="full" maxW={width} background={ - 'linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0.34%, rgba(0, 0, 0, 0.00) 34.08%, rgba(13, 0, 19, 0.35) 59.18%, rgba(20, 0, 28, 0.85) 100%)' + 'linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0.34%, rgba(0, 0, 0, 0.00) 34.08%, rgba(13, 0, 19, 0.35) 59.18%, rgba(20, 0, 28, 0.3) 100%)' } borderRightRadius={{ base: 'lg', xl: '2xl' }} zIndex={1} diff --git a/packages/web/components/Landing/LandingConnectButton.tsx b/packages/web/components/Landing/LandingConnectButton.tsx index ae7ba6e42..216366fba 100644 --- a/packages/web/components/Landing/LandingConnectButton.tsx +++ b/packages/web/components/Landing/LandingConnectButton.tsx @@ -74,12 +74,6 @@ export const LandingConnectButton = ({ isIconStyle = false, ...props }) => { } }, [connected, chainId, address, provider, toast]); - useEffect(() => { - if (!connected) { - setWrongNetwork(false); - } - }, [connected]); - return ( = { ...QuestChainPlaybooksDetails, - ...QuestChainPlaybooksDetails, }; export const QuestChains = {