@applica-software-guru/react-admin 1.3.154 → 1.3.155
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/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +3 -3
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Layout/Provider.tsx +3 -3
package/package.json
CHANGED
|
@@ -94,7 +94,7 @@ function reducer(state: ILayoutState, action: ILayoutAction) {
|
|
|
94
94
|
}
|
|
95
95
|
case LayoutActionType.UPDATE_NOTIFICATIONS: {
|
|
96
96
|
const notifications = _.chain(newState.notifications).clone().extend(payload).value();
|
|
97
|
-
return _.extend(newState,
|
|
97
|
+
return _.extend(newState, notifications);
|
|
98
98
|
}
|
|
99
99
|
case LayoutActionType.UPDATE_THEME: {
|
|
100
100
|
const theme = _.chain(newState.theme).clone().extend(payload).value();
|
|
@@ -233,9 +233,9 @@ function LayoutProvider(props: ILayoutProviderProps) {
|
|
|
233
233
|
|
|
234
234
|
function withLayoutProvider<P, T>(Component: React.ComponentType<P>) {
|
|
235
235
|
return forwardRef((props: P & ILayoutProviderProps, ref: React.ForwardedRef<T>) => {
|
|
236
|
-
const { logoIcon, logoMain, enableNotification } = props;
|
|
236
|
+
const { logoIcon, logoMain, enableNotification, notification } = props;
|
|
237
237
|
return (
|
|
238
|
-
<LayoutProvider logoIcon={logoIcon} logoMain={logoMain} enableNotification={enableNotification}>
|
|
238
|
+
<LayoutProvider logoIcon={logoIcon} logoMain={logoMain} enableNotification={enableNotification} notification={notification}>
|
|
239
239
|
<Component ref={ref} {...props} />
|
|
240
240
|
</LayoutProvider>
|
|
241
241
|
);
|