@momo-kits/foundation 0.121.3-beta.3 → 0.121.3-beta.4
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.
|
@@ -105,14 +105,14 @@ const HeaderToolkitAction: React.FC<any> = ({
|
|
|
105
105
|
);
|
|
106
106
|
|
|
107
107
|
const onDismiss = () => {
|
|
108
|
-
if (!useCloseIcon
|
|
108
|
+
if (!useCloseIcon || isWhiteList) {
|
|
109
|
+
navigator?.maxApi?.dispatchFunction?.('dismissAll');
|
|
110
|
+
} else {
|
|
109
111
|
navigator?.maxApi?.dispatchFunction?.(
|
|
110
112
|
'dismiss',
|
|
111
113
|
navigator?.dismissData,
|
|
112
114
|
undefined
|
|
113
115
|
);
|
|
114
|
-
} else {
|
|
115
|
-
navigator?.maxApi?.dispatchFunction?.('dismissAll');
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
|
|
@@ -300,7 +300,7 @@ const HeaderToolkitAction: React.FC<any> = ({
|
|
|
300
300
|
<Icon
|
|
301
301
|
color={tintColor}
|
|
302
302
|
source={
|
|
303
|
-
!useCloseIcon
|
|
303
|
+
!useCloseIcon || isWhiteList
|
|
304
304
|
? '16_basic_home'
|
|
305
305
|
: '16_navigation_close_circle'
|
|
306
306
|
}
|