Skip to content

Commit

Permalink
fix(Navbar): Moved network to logo
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesGuesnon authored and rueshyna committed Jun 16, 2023
1 parent a44e55d commit 2773f86
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ const NavBar = (_: React.PropsWithChildren) => {
/>
<div>
<p className="ml-4 text-xs">BETA</p>
{PREFERED_NETWORK === NetworkType.GHOSTNET && (
<p className="ml-4 mt-1 text-xs">Ghostnet</p>
)}

<p className="ml-4 mt-1 text-xs">
{PREFERED_NETWORK === NetworkType.GHOSTNET
? "Ghostnet"
: "Mainnet"}
</p>
</div>
</Link>
</div>
Expand Down Expand Up @@ -109,11 +112,6 @@ const NavBar = (_: React.PropsWithChildren) => {
"..." +
state?.address.slice(33)}
</span>
<span className="font-xs block text-white">
{PREFERED_NETWORK === "mainnet"
? "Mainnet"
: "Ghostnet"}
</span>
</div>
</button>
</div>
Expand Down Expand Up @@ -152,9 +150,6 @@ const NavBar = (_: React.PropsWithChildren) => {
<div className="text-base font-medium leading-none text-white">
<Alias address={state.address} length={3} />
</div>
<div className="text-right text-sm font-medium leading-none text-white">
{PREFERED_NETWORK === "mainnet" ? "Mainnet" : "Ghostnet"}
</div>
</div>
</div>
)}
Expand Down

0 comments on commit 2773f86

Please sign in to comment.