Skip to content

Commit

Permalink
fix: lint errors again
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutipanjwani committed Sep 17, 2024
1 parent 405ee9e commit 3ab2622
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/app/context/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions src/components/global/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ const createSlug = (point: string) => {
const Menu: React.FC<MenuProps> = ({ menuPoints }) => {
return (
<div className='flex items-center gap-x-5 flex-col lg:flex-row lg:absolute lg:left-1/2 lg:translate-y-[-12px] lg:-translate-x-1/2'>
<Link href='https://dune.com/yesyes/poidh-pics-or-it-didnt-happen'>analytics</Link>
<Link href='https://dune.com/yesyes/poidh-pics-or-it-didnt-happen'>
analytics
</Link>
<span>|</span>
<Link href='https://paragraph.xyz/@poidh/poidh-beginner-guide'>how it works</Link>
<Link href='https://paragraph.xyz/@poidh/poidh-beginner-guide'>
how it works
</Link>
</div>
);
};
Expand Down
2 changes: 0 additions & 2 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ const Footer = () => {
</div>
</div>
<div className='flex flex-row justify-center text-center text-[10px] lg:text-md pb-4 sm:pb-0'>

2024 &nbsp; <Link href='https://www.poidh.xyz'> POIDH</Link>

</div>
</>
);
Expand Down
13 changes: 8 additions & 5 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 3ab2622

Please sign in to comment.