remove duplicate header search on mobile

This commit is contained in:
zeppi 2022-02-15 21:44:15 -05:00 committed by jessopb
parent 49c5180820
commit 9375ada72a

View file

@ -122,7 +122,6 @@ const Header = (props: Props) => {
const userButtons = (hideWallet?: boolean, hideProfile?: boolean) => ( const userButtons = (hideWallet?: boolean, hideProfile?: boolean) => (
<div className="header__menu--right"> <div className="header__menu--right">
{isMobile && !authHeader && !canBackout && <WunderBar />}
<Tooltip <Tooltip
title={ title={
balance > 0 balance > 0
@ -141,11 +140,9 @@ const Header = (props: Props) => {
className="button--file-action header__navigationItem--balance" className="button--file-action header__navigationItem--balance"
label={hideBalance || Number(roundedBalance) === 0 ? __('Your Wallet') : roundedBalance} label={hideBalance || Number(roundedBalance) === 0 ? __('Your Wallet') : roundedBalance}
icon={ICONS.LBC} icon={ICONS.LBC}
// @if TARGET='app'
onDoubleClick={(e) => { onDoubleClick={(e) => {
e.stopPropagation(); e.stopPropagation();
}} }}
// @endif
/> />
</div> </div>
</Tooltip> </Tooltip>
@ -200,11 +197,9 @@ const Header = (props: Props) => {
// here use state.router.location.pathname // here use state.router.location.pathname
if (history.location.pathname === '/') window.location.reload(); if (history.location.pathname === '/') window.location.reload();
}} }}
// @if TARGET='app'
onDoubleClick={(e) => { onDoubleClick={(e) => {
e.stopPropagation(); e.stopPropagation();
}} }}
// @endif
{...homeButtonNavigationProps} {...homeButtonNavigationProps}
> >
<Logo /> <Logo />
@ -213,14 +208,12 @@ const Header = (props: Props) => {
{!authHeader && ( {!authHeader && (
<div className="header__center"> <div className="header__center">
{/* @if TARGET='app' */}
{!authHeader && ( {!authHeader && (
<div className="header__buttons"> <div className="header__buttons">
<NavigationButton isBackward history={history} /> <NavigationButton isBackward history={history} />
<NavigationButton isBackward={false} history={history} /> <NavigationButton isBackward={false} history={history} />
</div> </div>
)} )}
{/* @endif */}
<WunderBar /> <WunderBar />
<HeaderMenuButtons /> <HeaderMenuButtons />
</div> </div>