@applica-software-guru/react-admin 1.3.154 → 1.3.156

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.156",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -71,29 +71,13 @@ function HeaderNotificationButton() {
71
71
  <BellOutlined />
72
72
  </Badge>
73
73
  </HeaderToggleButton>
74
- <Popper
75
- placement={downMd ? 'bottom' : 'bottom-end'}
76
- open={open}
77
- anchorEl={anchorEl}
78
- role={undefined}
79
- transition
80
- disablePortal
81
- popperOptions={{
82
- modifiers: [
83
- {
84
- name: 'offset',
85
- options: {
86
- offset: [downMd ? -5 : 0, 9]
87
- }
88
- }
89
- ]
90
- }}
91
- >
74
+ <Popper placement={downMd ? 'bottom' : 'bottom-end'} open={open} anchorEl={anchorEl} role={undefined} transition disablePortal>
92
75
  {({ TransitionProps }) => (
93
76
  //@ts-ignore
94
77
  <Transitions type="grow" position={downMd ? 'top' : 'top-right'} in={open} {...TransitionProps}>
95
78
  <Paper
96
79
  sx={{
80
+ marginTop: 1,
97
81
  //@ts-ignore
98
82
  boxShadow: theme.customShadows.z1,
99
83
  width: '100%',
@@ -37,24 +37,7 @@ function Profile() {
37
37
  <Typography variant="subtitle1">{identity?.name}</Typography>
38
38
  </Stack>
39
39
  </HeaderToggleButton>
40
- <Popper
41
- placement="bottom-end"
42
- open={open}
43
- anchorEl={anchorEl}
44
- role={undefined}
45
- transition
46
- disablePortal
47
- popperOptions={{
48
- modifiers: [
49
- {
50
- name: 'offset',
51
- options: {
52
- offset: [0, 9]
53
- }
54
- }
55
- ]
56
- }}
57
- >
40
+ <Popper placement="bottom-end" open={open} anchorEl={anchorEl} role={undefined} transition disablePortal>
58
41
  {({ TransitionProps }) => (
59
42
  /* @ts-ignore */
60
43
  <Transitions type="grow" position="top-right" in={open} {...TransitionProps}>
@@ -67,7 +50,8 @@ function Profile() {
67
50
  maxWidth: 290,
68
51
  [theme.breakpoints.down('md')]: {
69
52
  maxWidth: 250
70
- }
53
+ },
54
+ marginTop: 1
71
55
  }}
72
56
  >
73
57
  <ClickAwayListener onClickAway={handleClose}>
@@ -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
  );