Skip to content

Commit

Permalink
fix(logo and title): fix logo and title when connecting to Crab
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidroohi92 committed Oct 9, 2024
1 parent eb9ca57 commit ad15b79
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions components/nav/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,17 @@ export const Navbar: React.FC = () => {
)}
>
{(chainId === 46 || chainId === 701) && (
<Image src="/images/logo-icon.png" width="36" height="36" className="shrink-0" alt="Ring Dao" />
)}
<Image src="/images/logo.png" width="100" height="36" className="shrink-0" alt="Ring Dao" />
{chainId === 701 && (
<span className="hidden py-1 text-lg font-semibold leading-tight text-[#fff] sm:block md:text-xl">
Test Version
</span>
<>
<Image src="/images/logo-icon.png" width="36" height="36" className="shrink-0" alt="Ring Dao" />
<Image src="/images/logo.png" width="100" height="36" className="shrink-0" alt="Ring Dao" />
{chainId === 701 && (
<span className="hidden py-1 text-lg font-semibold leading-tight text-[#fff] sm:block md:text-xl">
Test Version
</span>
)}
</>
)}
{chainId === 44 && <h2 className="text-2xl font-[700]">Crab DAO</h2>}
</Link>
<div className="z-20 flex items-center gap-x-2">
<div className="shrink-0">
Expand Down

0 comments on commit ad15b79

Please sign in to comment.