@kodiak-finance/orderly-ui-scaffold 2.8.21-rc.1 → 2.8.21-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3651,7 +3651,7 @@ var isExternalUrl = (href) => {
3651
3651
  }
3652
3652
  };
3653
3653
  var NotificationUI = (props) => {
3654
- const { dataSource, className } = props;
3654
+ const { dataSource, className, showAnnouncement } = props;
3655
3655
  const { routerAdapter } = useScaffoldContext();
3656
3656
  const onItemClick = (url) => {
3657
3657
  if (!url)
@@ -3666,11 +3666,14 @@ var NotificationUI = (props) => {
3666
3666
  if (len === 0) {
3667
3667
  return null;
3668
3668
  }
3669
+ if (!showAnnouncement) {
3670
+ return null;
3671
+ }
3669
3672
  return /* @__PURE__ */ jsx(
3670
3673
  AnnouncementBannerUI,
3671
3674
  {
3672
3675
  dataSource,
3673
- showAnnouncement: len > 0,
3676
+ showAnnouncement,
3674
3677
  onClose: props.onClose,
3675
3678
  onItemClick,
3676
3679
  className: cn("oui-mx-auto", className)
@@ -4309,8 +4312,7 @@ var DesktopScaffold = (props) => {
4309
4312
  ),
4310
4313
  children: footer || /* @__PURE__ */ jsx(FooterWidget, { ...footerProps })
4311
4314
  }
4312
- ),
4313
- /* @__PURE__ */ jsx(NotificationWidget, {})
4315
+ )
4314
4316
  ]
4315
4317
  }
4316
4318
  );