@momo-kits/foundation 0.112.1-optimize.2 → 0.112.1-optimize.3
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.
|
@@ -36,6 +36,15 @@ const NavigationContainer: React.FC<NavigationContainerProps> = ({
|
|
|
36
36
|
const [showGrid, setShowGrid] = useState(false);
|
|
37
37
|
const [currentContext, setCurrentContext] = useState({});
|
|
38
38
|
|
|
39
|
+
let headerBackground = theme.assets?.headerBackground;
|
|
40
|
+
let headerGradient = context?.designConfig.headerGradient;
|
|
41
|
+
if (context?.designConfig?.headerBar) {
|
|
42
|
+
headerBackground = context?.designConfig.headerBar;
|
|
43
|
+
}
|
|
44
|
+
if (theme.colors?.gradient) {
|
|
45
|
+
headerGradient = theme.colors?.gradient;
|
|
46
|
+
}
|
|
47
|
+
|
|
39
48
|
/**
|
|
40
49
|
* inject data for navigator
|
|
41
50
|
*/
|
|
@@ -96,11 +105,6 @@ const NavigationContainer: React.FC<NavigationContainerProps> = ({
|
|
|
96
105
|
});
|
|
97
106
|
};
|
|
98
107
|
|
|
99
|
-
const headerBackground =
|
|
100
|
-
theme.assets?.headerBackground || context?.designConfig.headerBar;
|
|
101
|
-
const headerGradient =
|
|
102
|
-
context?.designConfig.headerGradient || theme.colors?.gradient;
|
|
103
|
-
|
|
104
108
|
navigator.current.setCurrentContext = setCurrentContext;
|
|
105
109
|
|
|
106
110
|
return (
|