datastake-daf 0.6.663 → 0.6.665

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.
@@ -6434,7 +6434,8 @@ function Notifications({
6434
6434
  t = key => key,
6435
6435
  goTo = () => {},
6436
6436
  getRedirectLink = () => {},
6437
- appName = 'app'
6437
+ appName = 'app',
6438
+ theme = {}
6438
6439
  }) {
6439
6440
  const [historyVisible, setHistoryVisible] = o.useState(false);
6440
6441
  const {
@@ -6493,7 +6494,7 @@ function Notifications({
6493
6494
  items
6494
6495
  },
6495
6496
  trigger: "click",
6496
- rootClassName: formatClassname(['dark-menu', appName]),
6497
+ rootClassName: formatClassname(['dark-menu', appName, theme.customHeaderColor && 'custom']),
6497
6498
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
6498
6499
  className: "cursor-pointer",
6499
6500
  children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.663",
3
+ "version": "0.6.665",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -16,6 +16,7 @@ export default function Notifications({
16
16
  goTo = () => {},
17
17
  getRedirectLink = () => {},
18
18
  appName = 'app',
19
+ theme = {},
19
20
  }) {
20
21
  const [historyVisible, setHistoryVisible] = useState(false);
21
22
  const { loading, _notifications, _fetch, total, clearAll } = useNotificationsContext();
@@ -58,7 +59,7 @@ export default function Notifications({
58
59
  <Dropdown
59
60
  menu={{ items }}
60
61
  trigger="click"
61
- rootClassName={formatClassname(['dark-menu', appName])}
62
+ rootClassName={formatClassname(['dark-menu', appName, theme.customHeaderColor && 'custom'])}
62
63
  >
63
64
  <div className="cursor-pointer">
64
65
  <CustomIcon name="MoreCustom" width={3} height={13} />