Add help button to header in guets mode

This commit is contained in:
Raphael Wickihalder 2022-06-22 18:25:24 +02:00
parent 486a557d75
commit d1958d3775
No known key found for this signature in database
GPG key ID: 05179BB92383243D

View file

@ -57,11 +57,18 @@ export default function HeaderMenuButtons(props: HeaderMenuButtonProps) {
</Menu> </Menu>
{!authenticated && ( {!authenticated && (
<>
<Tooltip title={__('Settings')}> <Tooltip title={__('Settings')}>
<Button className="header__navigationItem--icon" onClick={() => push(`/$/${PAGES.SETTINGS}`)}> <Button className="header__navigationItem--icon" onClick={() => push(`/$/${PAGES.SETTINGS}`)}>
<Icon size={18} icon={ICONS.SETTINGS} aria-hidden /> <Icon size={18} icon={ICONS.SETTINGS} aria-hidden />
</Button> </Button>
</Tooltip> </Tooltip>
<Tooltip title={__('Help')}>
<Button className="header__navigationItem--icon" onClick={() => push(`/$/${PAGES.HELP}`)}>
<Icon size={18} icon={ICONS.HELP} aria-hidden />
</Button>
</Tooltip>
</>
)} )}
{notificationsEnabled && <NotificationHeaderButton />} {notificationsEnabled && <NotificationHeaderButton />}