diff --git a/ui/component/header/view.jsx b/ui/component/header/view.jsx index 10e7c6a7b..8db1ad21a 100644 --- a/ui/component/header/view.jsx +++ b/ui/component/header/view.jsx @@ -18,7 +18,7 @@ import { IS_MAC } from 'component/app/view'; type Props = { balance: string, roundedBalance: number, - history: { push: string => void, goBack: () => void, goForward: () => void }, + history: { push: string => void, goBack: () => void, goForward: () => void, location: { pathname: string } }, currentTheme: string, automaticDarkModeEnabled: boolean, setClientSetting: (string, boolean | string) => void, @@ -49,9 +49,7 @@ const Header = (props: Props) => { // Sign out if they click the "x" when they are on the password prompt const authHeaderAction = syncError ? { onClick: signOut } : { navigate: '/' }; - const homeButtonNavigationProps = isVerifyPage ? - { } : - authHeader ? authHeaderAction : { navigate: '/' }; + const homeButtonNavigationProps = isVerifyPage ? {} : authHeader ? authHeaderAction : { navigate: '/' }; const closeButtonNavigationProps = authHeader ? authHeaderAction : { onClick: () => history.goBack() }; function handleThemeToggle() { @@ -116,7 +114,7 @@ const Header = (props: Props) => { )} {/* @endif */} - {!authHeader && } + {!authHeader && } {!authHeader ? ( @@ -127,37 +125,37 @@ const Header = (props: Props) => { {getWalletTitle()} history.push(`/$/${PAGES.WALLET}`)}> - + {__('Wallet')} history.push(`/$/${PAGES.REWARDS}`)}> - + {__('Rewards')} - + history.push(`/$/${PAGES.ACCOUNT}`)}> - + {__('Overview')} history.push(`/$/${PAGES.PUBLISH}`)}> - + {__('Publish')} {authenticated ? ( - + {__('Sign Out')} ) : ( history.push(`/$/${PAGES.AUTH}`)}> - + {__('Sign In')} )} @@ -166,37 +164,39 @@ const Header = (props: Props) => { - + history.push(`/$/${PAGES.SETTINGS}`)}> - + {__('Settings')} history.push(`/$/${PAGES.HELP}`)}> - + {__('Help')} - + {currentTheme === 'light' ? __('Dark') : __('Light')} ) : ( -