Skip to content

Commit

Permalink
use NotificationCenter
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmurraydavid committed Oct 10, 2024
1 parent 305d9bf commit 12a134c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/scenes/Root/Header/ProfileToolbar/ProfileToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { AccountCircle, SupervisedUserCircle } from '@mui/icons-material';
import { IconButton, MenuProps, Stack, Typography } from '@mui/material';
import { useContext, useState } from 'react';
import { ImpersonationContext } from '~/api/client/ImpersonationContext';
import { useSession } from '../../../../components/Session';
import { Feature } from '~/components/Feature';
import { NotificationCenter } from '~/components/NotificationsCenter/NotificationsCenter';
import { useSession } from '~/components/Session';
import { ProfileMenu } from '../ProfileMenu';

export const ProfileToolbar = () => {
Expand All @@ -13,6 +15,10 @@ export const ProfileToolbar = () => {
return (
<>
<Stack direction="row" spacing={1} alignItems="center">
{/* Wrapping with FF here to avoid API call */}
<Feature flag="notifications" match>
<NotificationCenter />
</Feature>
<Typography color="primary" sx={{ fontWeight: 'medium' }}>
{session?.fullName}
</Typography>
Expand Down

0 comments on commit 12a134c

Please sign in to comment.