feat: make appName and therefore logo for navigation component optional
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user