1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

feat(notifications): track toast notifications [EE-4132] (#7711)

* feat(notifications): track toast notifications [EE-4132]

* suggested refactoring

* fix failing test

* remove duplicate styles

* applying spacing to context icon
This commit is contained in:
itsconquest 2022-09-23 17:17:44 +12:00 committed by GitHub
parent 4e20d70a99
commit 648c1db437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 608 additions and 59 deletions

View file

@ -3,6 +3,7 @@ import { PropsWithChildren } from 'react';
import { ContextHelp } from '@@/PageHeader/ContextHelp';
import { useHeaderContext } from './HeaderContainer';
import { NotificationsMenu } from './NotificationsMenu';
import { UserMenu } from './UserMenu';
interface Props {
@ -20,7 +21,8 @@ export function HeaderTitle({ title, children }: PropsWithChildren<Props>) {
</div>
{children && <span>{children}</span>}
</div>
<div className="flex items-center gap-4">
<div className="flex items-end">
<NotificationsMenu />
<ContextHelp />
{!window.ddExtension && <UserMenu />}
</div>