@momo-kits/foundation 0.92.29-optimize.15 → 0.92.29-optimize.16
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/Application/Components.tsx +10 -9
- package/package.json +1 -1
|
@@ -297,7 +297,6 @@ const HeaderRightAction: React.FC<any> = ({children, ...restProps}) => {
|
|
|
297
297
|
const HeaderToolkitAction: React.FC<any> = ({
|
|
298
298
|
tintColor,
|
|
299
299
|
pinnedTool,
|
|
300
|
-
runtimeTools = [],
|
|
301
300
|
preventClose,
|
|
302
301
|
}) => {
|
|
303
302
|
const {navigator} = useContext(ApplicationContext);
|
|
@@ -334,13 +333,15 @@ const HeaderToolkitAction: React.FC<any> = ({
|
|
|
334
333
|
const onMore = () => {
|
|
335
334
|
onAction?.('onMore');
|
|
336
335
|
navigator?.maxApi?.dispatchFunction?.(
|
|
337
|
-
'
|
|
338
|
-
{
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
336
|
+
'showToolkit',
|
|
337
|
+
{
|
|
338
|
+
tools: miniContext?.toolkitConfig?.oldTools ?? [
|
|
339
|
+
'addFavorite',
|
|
340
|
+
'addShortcut',
|
|
341
|
+
'share',
|
|
342
|
+
],
|
|
343
|
+
},
|
|
344
|
+
() => {}
|
|
344
345
|
);
|
|
345
346
|
};
|
|
346
347
|
|
|
@@ -385,7 +386,7 @@ const HeaderToolkitAction: React.FC<any> = ({
|
|
|
385
386
|
onPress={() => {
|
|
386
387
|
navigator?.maxApi?.dispatchFunction?.(
|
|
387
388
|
'onToolAction',
|
|
388
|
-
|
|
389
|
+
{item: pinTool},
|
|
389
390
|
() => {
|
|
390
391
|
getToolkitConfig();
|
|
391
392
|
}
|