-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: only show network badge for non mainnet, adjust home position, ref
- Loading branch information
1 parent
ef8134f
commit 4d9918c
Showing
3 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
import { NetworkBadge } from '@/features/settings/network-badge'; | ||
|
||
import { Box } from '@leather.io/ui/native'; | ||
|
||
import { HeaderLeatherLogo } from './components/header-leather-logo'; | ||
import { HeaderOptions } from './components/header-options'; | ||
import { HeaderLayout } from './header.layout'; | ||
|
||
export function HomeHeader() { | ||
return <HeaderLayout leftElement={<HeaderLeatherLogo />} rightElement={<HeaderOptions />} />; | ||
return ( | ||
<HeaderLayout | ||
leftElement={ | ||
<Box flexDirection="row" alignItems="center"> | ||
<HeaderLeatherLogo /> | ||
<NetworkBadge px="0" ml="-1" /> | ||
</Box> | ||
} | ||
rightElement={<HeaderOptions />} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters