pcm-shared-components 0.0.89 → 0.0.90
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.
|
@@ -99,6 +99,13 @@ export const GenericDialogWindow = props => {
|
|
|
99
99
|
const setOverrides = () => {
|
|
100
100
|
try {
|
|
101
101
|
//Loop over all our on click overrides and apply the onClick callback for each id found in the onClickOverride state
|
|
102
|
+
onClickOverride.forEach(item => {
|
|
103
|
+
setManagedAppBarMenu(previousState => {
|
|
104
|
+
return { ...previousState,
|
|
105
|
+
mainMenu: updateObjectByID(previousState.mainMenu, item.id, undefined)
|
|
106
|
+
};
|
|
107
|
+
});
|
|
108
|
+
});
|
|
102
109
|
onClickOverride.forEach(item => {
|
|
103
110
|
setManagedAppBarMenu(previousState => {
|
|
104
111
|
return { ...previousState,
|