@campxdev/shared 1.10.34 → 1.10.35

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": "@campxdev/shared",
3
- "version": "1.10.34",
3
+ "version": "1.10.35",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -11,6 +11,7 @@ import {
11
11
  import { TransitionProps } from '@mui/material/transitions'
12
12
  import { forwardRef, ReactNode, useState } from 'react'
13
13
  import { SCROLLBAR_DARK } from '../../theme/muiTheme'
14
+ import ErrorBoundary from '../ErrorBoundary/ErrorBoundary'
14
15
 
15
16
  const StyledDialogHeader = styled(Box)(() => ({
16
17
  height: '64px',
@@ -124,7 +125,9 @@ export const CustomDialog = ({
124
125
  </IconButton>
125
126
  </StyledDialogHeader>
126
127
  )}
127
- <StyledDialogContent>{content({ close: onClose })}</StyledDialogContent>
128
+ <StyledDialogContent>
129
+ <ErrorBoundary>{content({ close: onClose })}</ErrorBoundary>
130
+ </StyledDialogContent>
128
131
  </Dialog>
129
132
  )
130
133
  }
@@ -10,6 +10,7 @@ import {
10
10
  } from '@mui/material'
11
11
  import { ReactNode, useState } from 'react'
12
12
  import { SCROLLBAR_DARK } from '../../theme/muiTheme'
13
+ import ErrorBoundary from '../ErrorBoundary/ErrorBoundary'
13
14
 
14
15
  const StyledDrawerHeader = styled(Box)(({ theme }) => ({
15
16
  height: '64px',
@@ -109,7 +110,9 @@ export const CustomDrawer = ({
109
110
  <Close />
110
111
  </IconButton>
111
112
  </StyledDrawerHeader>
112
- <StyledDrawerContent>{content({ close: onClose })}</StyledDrawerContent>
113
+ <StyledDrawerContent>
114
+ <ErrorBoundary>{content({ close: onClose })}</ErrorBoundary>
115
+ </StyledDrawerContent>
113
116
  </Drawer>
114
117
  )
115
118
  }