diff --git a/ui/component/headerMenuButtons/view.jsx b/ui/component/headerMenuButtons/view.jsx index 873e90e11..11b718d11 100644 --- a/ui/component/headerMenuButtons/view.jsx +++ b/ui/component/headerMenuButtons/view.jsx @@ -3,6 +3,7 @@ import 'scss/component/_header.scss'; import { ENABLE_UI_NOTIFICATIONS, ENABLE_NO_SOURCE_CLAIMS } from 'config'; import { Menu, MenuList, MenuButton } from '@reach/menu-button'; +import { useHistory } from 'react-router'; import * as ICONS from 'constants/icons'; import * as PAGES from 'constants/pages'; import Button from 'component/button'; @@ -29,6 +30,7 @@ export default function HeaderMenuButtons(props: HeaderMenuButtonProps) { const livestreamEnabled = Boolean(ENABLE_NO_SOURCE_CLAIMS && user && !user.odysee_live_disabled); const uploadProps = { requiresAuth: !authenticated }; + const { push } = useHistory(); return (
@@ -54,6 +56,14 @@ export default function HeaderMenuButtons(props: HeaderMenuButtonProps) { + {!authenticated && ( + + + + )} + {notificationsEnabled && } {authenticated && (