datastake-daf 0.6.672 → 0.6.673
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/layouts/index.js
CHANGED
|
@@ -7632,13 +7632,14 @@ function Notifications({
|
|
|
7632
7632
|
total,
|
|
7633
7633
|
clearAll
|
|
7634
7634
|
} = useNotificationsContext();
|
|
7635
|
+
console.log('theme', theme?.headerTextColor);
|
|
7635
7636
|
const items = [{
|
|
7636
7637
|
key: "details",
|
|
7637
7638
|
icon: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
7638
7639
|
name: "CheckDone",
|
|
7639
7640
|
width: 13,
|
|
7640
7641
|
height: 13,
|
|
7641
|
-
color: theme
|
|
7642
|
+
color: theme?.headerTextColor || 'white'
|
|
7642
7643
|
}),
|
|
7643
7644
|
disabled: !total,
|
|
7644
7645
|
onClick: () => {
|
|
@@ -7652,7 +7653,7 @@ function Notifications({
|
|
|
7652
7653
|
name: "NotificationText",
|
|
7653
7654
|
width: 13,
|
|
7654
7655
|
height: 13,
|
|
7655
|
-
color: theme
|
|
7656
|
+
color: theme?.headerTextColor || 'white'
|
|
7656
7657
|
}),
|
|
7657
7658
|
onClick: () => {
|
|
7658
7659
|
toggle();
|
|
@@ -7665,7 +7666,7 @@ function Notifications({
|
|
|
7665
7666
|
name: "Settings",
|
|
7666
7667
|
width: 13,
|
|
7667
7668
|
height: 13,
|
|
7668
|
-
color: theme
|
|
7669
|
+
color: theme?.headerTextColor || 'white'
|
|
7669
7670
|
}),
|
|
7670
7671
|
onClick: () => {
|
|
7671
7672
|
toggle();
|
|
@@ -8272,7 +8273,7 @@ function AppLayout({
|
|
|
8272
8273
|
defaultValue: StorageManager.get('datastakeLng') || 'en',
|
|
8273
8274
|
bordered: false,
|
|
8274
8275
|
onChange: lng => updateLanguage?.(lng),
|
|
8275
|
-
popupClassName: formatClassname(['dark-select-popup language-select', appName]),
|
|
8276
|
+
popupClassName: formatClassname(['dark-select-popup language-select', appName, theme.customHeaderColor && 'custom']),
|
|
8276
8277
|
children: languageConfig.map(lang => /*#__PURE__*/jsxRuntime.jsx(antd.Select.Option, {
|
|
8277
8278
|
value: lang.value,
|
|
8278
8279
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
package/package.json
CHANGED
|
@@ -23,10 +23,12 @@ export default function Notifications({
|
|
|
23
23
|
const [historyVisible, setHistoryVisible] = useState(false);
|
|
24
24
|
const { loading, _notifications, _fetch, total, clearAll } = useNotificationsContext();
|
|
25
25
|
|
|
26
|
+
console.log('theme', theme?.headerTextColor);
|
|
27
|
+
|
|
26
28
|
const items = [
|
|
27
29
|
{
|
|
28
30
|
key: "details",
|
|
29
|
-
icon: <CustomIcon name="CheckDone" width={13} height={13} color={theme
|
|
31
|
+
icon: <CustomIcon name="CheckDone" width={13} height={13} color={theme?.headerTextColor || 'white' } />,
|
|
30
32
|
disabled: !total,
|
|
31
33
|
onClick: () => {
|
|
32
34
|
clearAll();
|
|
@@ -36,7 +38,7 @@ export default function Notifications({
|
|
|
36
38
|
},
|
|
37
39
|
{
|
|
38
40
|
key: "publish",
|
|
39
|
-
icon: <CustomIcon name="NotificationText" width={13} height={13} color={theme
|
|
41
|
+
icon: <CustomIcon name="NotificationText" width={13} height={13} color={theme?.headerTextColor || 'white' } />,
|
|
40
42
|
onClick: () => {
|
|
41
43
|
toggle();
|
|
42
44
|
setHistoryVisible(true);
|
|
@@ -45,7 +47,7 @@ export default function Notifications({
|
|
|
45
47
|
},
|
|
46
48
|
{
|
|
47
49
|
key: "dashboard",
|
|
48
|
-
icon: <CustomIcon name="Settings" width={13} height={13} color={theme
|
|
50
|
+
icon: <CustomIcon name="Settings" width={13} height={13} color={theme?.headerTextColor || 'white' } />,
|
|
49
51
|
onClick: () => {
|
|
50
52
|
toggle();
|
|
51
53
|
goTo(getRedirectLink(`/app/${mod}/view/settings?activeForm=notifications`));
|
|
@@ -367,7 +367,7 @@ function AppLayout({
|
|
|
367
367
|
defaultValue={StorageManager.get('datastakeLng') || 'en'}
|
|
368
368
|
bordered={false}
|
|
369
369
|
onChange={lng => updateLanguage?.(lng)}
|
|
370
|
-
popupClassName={formatClassname(['dark-select-popup language-select', appName])}
|
|
370
|
+
popupClassName={formatClassname(['dark-select-popup language-select', appName, theme.customHeaderColor && 'custom'])}
|
|
371
371
|
>
|
|
372
372
|
{languageConfig.map(lang => (
|
|
373
373
|
<Select.Option key={lang.value} value={lang.value}>
|