@campxdev/shared 1.10.34 → 1.10.36
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,12 +1,12 @@
|
|
|
1
1
|
import { isDevelopment } from '../../../constants'
|
|
2
2
|
import {
|
|
3
3
|
campxSquareSmall,
|
|
4
|
+
commuteSmall,
|
|
4
5
|
enrollSmall,
|
|
5
6
|
examsSmall,
|
|
6
7
|
hostelSmall,
|
|
7
8
|
paySmall,
|
|
8
9
|
peopleSmall,
|
|
9
|
-
commuteSmall,
|
|
10
10
|
} from './assets'
|
|
11
11
|
|
|
12
12
|
const origins = {
|
|
@@ -83,7 +83,8 @@ export const applications = [
|
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
title: 'CommuteX',
|
|
86
|
-
key: '
|
|
86
|
+
key: 'commute_x',
|
|
87
|
+
domainName: 'commute',
|
|
87
88
|
path: isDevelopment ? origins.commute.dev : origins.commute.prod,
|
|
88
89
|
icon: commuteSmall,
|
|
89
90
|
description: 'Manage Commute in the Campus',
|
|
@@ -91,7 +92,8 @@ export const applications = [
|
|
|
91
92
|
|
|
92
93
|
{
|
|
93
94
|
title: 'PeopleX',
|
|
94
|
-
key: '
|
|
95
|
+
key: 'hrms',
|
|
96
|
+
domainName: 'people',
|
|
95
97
|
path: isDevelopment ? origins.people.dev : origins.people.prod,
|
|
96
98
|
icon: peopleSmall,
|
|
97
99
|
description: 'Manage People in the Campus',
|
|
@@ -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>
|
|
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>
|
|
113
|
+
<StyledDrawerContent>
|
|
114
|
+
<ErrorBoundary>{content({ close: onClose })}</ErrorBoundary>
|
|
115
|
+
</StyledDrawerContent>
|
|
113
116
|
</Drawer>
|
|
114
117
|
)
|
|
115
118
|
}
|