diff --git a/services/web/frontend/js/features/project-list/components/notifications/notification.tsx b/services/web/frontend/js/features/project-list/components/notifications/notification.tsx index 3d6664c6a5..7d9a4cf742 100644 --- a/services/web/frontend/js/features/project-list/components/notifications/notification.tsx +++ b/services/web/frontend/js/features/project-list/components/notifications/notification.tsx @@ -16,6 +16,7 @@ type NotificationProps = { action?: React.ReactElement onDismiss?: AlertProps['onDismiss'] className?: string + newNotificationStyle?: boolean } /** @@ -35,12 +36,12 @@ function Notification({ className, body, action, + newNotificationStyle, ...props }: NotificationProps) { - const newNotificationStyle = getMeta( - 'ol-newNotificationStyle', - false - ) as boolean + newNotificationStyle = + newNotificationStyle ?? + (getMeta('ol-newNotificationStyle', false) as boolean) const [show, setShow] = useState(true) @@ -61,7 +62,7 @@ function Notification({ bsStyle === 'danger' ? 'error' : bsStyle ) as NotificationType return ( -
  • +
  • Enjoying Writefull? Get 10% off Writefull Premium, giving you access to TeXGPT—AI assistance to generate LaTeX code. Use{' '}