feat: make appName and therefore logo for navigation component optional

This commit is contained in:
Matthew Russell
2023-07-14 16:50:46 +01:00
parent 24dea53e83
commit 5f487f40b0
3 changed files with 4 additions and 3 deletions
@@ -57,7 +57,6 @@ export const Navbar = ({
return (
<Navigation
appName="Console"
theme={theme}
actions={
<>
@@ -5,7 +5,7 @@ export type NavigationProps = {
/**
* The display name of the dApp, e.g. "Console", "Explorer"
*/
appName: string;
appName?: string;
/**
* URL pointing to the home page.
*/
@@ -344,7 +344,9 @@ export const Navigation = ({
)}
data-testid="navigation"
>
<Logo appName={appName} theme={theme} homeLink={homeLink} />
{appName && (
<Logo appName={appName} theme={theme} homeLink={homeLink} />
)}
<div
className={classNames(
'navbar',