@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applica-software-guru/react-admin",
3
- "version": "1.3.154",
3
+ "version": "1.3.155",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -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, { notifications: notifications });
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
  );