diff --git a/site/src/pages/WorkspacePage/WorkspaceNotifications/Notifications.tsx b/site/src/pages/WorkspacePage/WorkspaceNotifications/Notifications.tsx index e2d1757f26e0d..56ecd901212c5 100644 --- a/site/src/pages/WorkspacePage/WorkspaceNotifications/Notifications.tsx +++ b/site/src/pages/WorkspacePage/WorkspaceNotifications/Notifications.tsx @@ -4,11 +4,10 @@ import type { AlertProps } from "#/components/Alert/Alert"; import { Button, type ButtonProps } from "#/components/Button/Button"; import { Pill } from "#/components/Pill/Pill"; import { - Tooltip, - TooltipContent, - TooltipProvider, - TooltipTrigger, -} from "#/components/Tooltip/Tooltip"; + Popover, + PopoverContent, + PopoverTrigger, +} from "#/components/Popover/Popover"; import type { ThemeRole } from "#/theme/roles"; export type NotificationItem = { @@ -33,55 +32,53 @@ export const Notifications: FC = ({ const theme = useTheme(); return ( - - - -
- -
-
- + + + + + {items.map((n) => ( + + ))} + + ); }; type NotificationPillProps = NotificationsProps & { - isTooltipOpen: boolean; + isOpen: boolean; }; const NotificationPill: FC = ({ items, severity, icon, - isTooltipOpen, + isOpen, }) => { return ( ({ "& svg": { color: theme.roles[severity].outline }, - borderColor: isTooltipOpen ? theme.roles[severity].outline : undefined, + borderColor: isOpen ? theme.roles[severity].outline : undefined, })} > {items.length} diff --git a/site/src/pages/WorkspacePage/WorkspaceNotifications/WorkspaceNotifications.tsx b/site/src/pages/WorkspacePage/WorkspaceNotifications/WorkspaceNotifications.tsx index 6147185813ff1..90465b219aa28 100644 --- a/site/src/pages/WorkspacePage/WorkspaceNotifications/WorkspaceNotifications.tsx +++ b/site/src/pages/WorkspacePage/WorkspaceNotifications/WorkspaceNotifications.tsx @@ -270,7 +270,9 @@ export const WorkspaceNotifications: FC = ({ } + icon={ +