feat: header logo reloads at "/"

This commit is contained in:
Mr. X 2020-04-21 18:18:39 +05:30 committed by Sean Yesmunt
parent e6a044d8e1
commit 5b58a46ebd

View file

@ -133,7 +133,9 @@ const Header = (props: Props) => {
className="header__navigation-item header__navigation-item--lbry header__navigation-item--button-mobile"
label={__('LBRY')}
icon={ICONS.LBRY}
onClick={() => window.scrollTo(0, 0)}
onClick={() => {
if (history.location.pathname === '/') window.location.reload();
}}
{...homeButtonNavigationProps}
/>