From 3ab26222f24587777a190e56ac7aceda03dd154c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cshrutipanjwani=E2=80=9D?= Date: Tue, 17 Sep 2024 22:55:18 +0530 Subject: [PATCH] fix: lint errors again --- src/app/context/config.ts | 3 ++- src/components/global/Menu.tsx | 8 ++++++-- src/components/layout/Footer.tsx | 2 -- src/lib/utils.ts | 13 ++++++++----- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/app/context/config.ts b/src/app/context/config.ts index 4ffb1aa9..7b727805 100644 --- a/src/app/context/config.ts +++ b/src/app/context/config.ts @@ -13,7 +13,8 @@ export const chains: { [key in NetworkChoices]: Chain } = { }, degen: { name: 'Degen Mainnet', - jsonProviderUrl: 'https://rpc-degen-mainnet-1.t.conduit.xyz/8TM2tJu2NV9h6McqXqDPHCnsvCdwVgyrH', + jsonProviderUrl: + 'https://rpc-degen-mainnet-1.t.conduit.xyz/8TM2tJu2NV9h6McqXqDPHCnsvCdwVgyrH', rpc: 'https://rpc-degen-mainnet-1.t.conduit.xyz/8TM2tJu2NV9h6McqXqDPHCnsvCdwVgyrH', contracts: { mainContract: '0x2445BfFc6aB9EEc6C562f8D7EE325CddF1780814', diff --git a/src/components/global/Menu.tsx b/src/components/global/Menu.tsx index 6b7b3f07..8319d548 100644 --- a/src/components/global/Menu.tsx +++ b/src/components/global/Menu.tsx @@ -12,9 +12,13 @@ const createSlug = (point: string) => { const Menu: React.FC = ({ menuPoints }) => { return (
- analytics + + analytics + | - how it works + + how it works +
); }; diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 3ffb3567..a50a8f67 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -45,9 +45,7 @@ const Footer = () => {
- 2024   POIDH -
); diff --git a/src/lib/utils.ts b/src/lib/utils.ts index d5d92735..e26920cb 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -7,11 +7,14 @@ export function cn(...inputs: ClassValue[]) { } export function getNetworkNameFromPath(path: string) { - const token = path.split('/')[1] - let networkName = 'base' - if(token && (token === 'base' || token === 'degen' || token === 'arbitrum')) { - networkName = token + const token = path.split('/')[1]; + let networkName = 'base'; + if ( + token && + (token === 'base' || token === 'degen' || token === 'arbitrum') + ) { + networkName = token; } return networkName; -} \ No newline at end of file +}