add * option for route in itempatches

This commit is contained in:
AAGaming
2022-12-31 22:46:39 -05:00
parent d762860eac
commit 335d38e12b

View File

@@ -137,7 +137,14 @@ class MenuHook extends Logger {
const oType = itemList[index].type;
itemList[index] = patch({
...cloneElement(itemList[index]),
type: (props) => createElement(oType, props),
type: (props: any) => createElement(oType, props),
});
});
itemPatches.get('*')?.forEach((patch) => {
const oType = itemList[index].type;
itemList[index] = patch({
...cloneElement(itemList[index]),
type: (props: any) => createElement(oType, props),
});
});
}