diff --git a/src/components/Header.tsx b/src/components/Header.tsx index b5d14d3df..5f5a6ae68 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -29,6 +29,7 @@ export interface HeaderDispatchProps { export interface HeaderOwnProps { store?: Store; + logoOnly?: boolean; } export interface HeaderProps @@ -130,83 +131,90 @@ export class Header extends React.Component { }, ]; const accountLink = { label: "Change password", href: "account/" }; + const logoOnly = this.props.logoOnly ?? false; return ( {title()} - {this.props.libraries && this.props.libraries.length > 0 && ( - - {(!this.context.library || !currentLibrary) && ( - - )} - {this.props.libraries.map((library) => ( - - ))} - + {(!this.context.library || !currentLibrary) && ( + + )} + {this.props.libraries.map((library) => ( + + ))} + + )} + + )} - - - {currentLibrary && ( -