@campxdev/shared 3.1.3-alpha4 → 3.1.4
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 +1 -1
- package/src/components/Selectors/ClassRoomSelector.tsx +4 -1
- package/src/components/Selectors/CourseSelector.tsx +3 -1
- package/src/components/Selectors/DepartmentSelector.tsx +3 -1
- package/src/components/Selectors/ExamGroupSelector.tsx +2 -0
- package/src/components/Selectors/FacultySelector.tsx +1 -0
- package/src/components/Selectors/FeeTypeSelector.tsx +3 -1
- package/src/components/Selectors/ProgramSelector.tsx +4 -1
- package/src/components/Selectors/QuotaSelector.tsx +4 -1
- package/src/components/Selectors/SemesterSelector.tsx +4 -1
package/package.json
CHANGED
|
@@ -41,6 +41,7 @@ const ClassRoomSelector = (props: ClassRoomSelectorProps) => {
|
|
|
41
41
|
axios
|
|
42
42
|
.get(api, {
|
|
43
43
|
params: filters,
|
|
44
|
+
workspace: false,
|
|
44
45
|
})
|
|
45
46
|
.then((response) => {
|
|
46
47
|
setOptions(response.data)
|
|
@@ -54,7 +55,9 @@ const ClassRoomSelector = (props: ClassRoomSelectorProps) => {
|
|
|
54
55
|
}
|
|
55
56
|
} else if (options.length === 0) {
|
|
56
57
|
axios
|
|
57
|
-
.get(api
|
|
58
|
+
.get(api, {
|
|
59
|
+
workspace: false,
|
|
60
|
+
})
|
|
58
61
|
.then((response) => {
|
|
59
62
|
setOptions(response.data)
|
|
60
63
|
})
|
|
@@ -27,7 +27,9 @@ export default function DepartmentSelector(props: DepartmentSelectorProps) {
|
|
|
27
27
|
const handleOpen = () => {
|
|
28
28
|
if (options.length === 0) {
|
|
29
29
|
axios
|
|
30
|
-
.get(api
|
|
30
|
+
.get(api, {
|
|
31
|
+
workspace: false,
|
|
32
|
+
})
|
|
31
33
|
.then((response) => {
|
|
32
34
|
setOptions(response.data.data)
|
|
33
35
|
})
|
|
@@ -43,6 +43,7 @@ const ExamGroupSelector = (props: ExamGroupSelectorProps) => {
|
|
|
43
43
|
isArchived: 'false',
|
|
44
44
|
isExamPublished: 'true',
|
|
45
45
|
},
|
|
46
|
+
workspace: false,
|
|
46
47
|
})
|
|
47
48
|
.then((response) => {
|
|
48
49
|
setOptions(
|
|
@@ -64,6 +65,7 @@ const ExamGroupSelector = (props: ExamGroupSelectorProps) => {
|
|
|
64
65
|
isArchived: 'false',
|
|
65
66
|
isExamPublished: 'true',
|
|
66
67
|
},
|
|
68
|
+
workspace: false,
|
|
67
69
|
})
|
|
68
70
|
.then((response) => {
|
|
69
71
|
setOptions(
|
|
@@ -19,7 +19,9 @@ export default function FeeTypeSelector(props: FeeTypeSelectorProps) {
|
|
|
19
19
|
const handleOpen = () => {
|
|
20
20
|
if (options.length === 0) {
|
|
21
21
|
axios
|
|
22
|
-
.get('/paymentx/fee-types'
|
|
22
|
+
.get('/paymentx/fee-types', {
|
|
23
|
+
workspace: false,
|
|
24
|
+
})
|
|
23
25
|
.then((response) => {
|
|
24
26
|
setOptions(response.data)
|
|
25
27
|
})
|
|
@@ -35,6 +35,7 @@ const ProgramSelector = (props: ProgramSelectorProps) => {
|
|
|
35
35
|
axios
|
|
36
36
|
.get(api, {
|
|
37
37
|
params: filters,
|
|
38
|
+
workspace: false,
|
|
38
39
|
})
|
|
39
40
|
.then((response) => {
|
|
40
41
|
setOptions(response.data)
|
|
@@ -46,7 +47,9 @@ const ProgramSelector = (props: ProgramSelectorProps) => {
|
|
|
46
47
|
}
|
|
47
48
|
} else if (options.length === 0) {
|
|
48
49
|
axios
|
|
49
|
-
.get(api
|
|
50
|
+
.get(api, {
|
|
51
|
+
workspace: false,
|
|
52
|
+
})
|
|
50
53
|
.then((response) => {
|
|
51
54
|
setOptions(response.data)
|
|
52
55
|
})
|
|
@@ -33,6 +33,7 @@ export default function QuotaSelector(props: QuotaSelectorProps) {
|
|
|
33
33
|
axios
|
|
34
34
|
.get(api, {
|
|
35
35
|
params: filters,
|
|
36
|
+
workspace: false,
|
|
36
37
|
})
|
|
37
38
|
.then((response) => {
|
|
38
39
|
setOptions(
|
|
@@ -46,7 +47,9 @@ export default function QuotaSelector(props: QuotaSelectorProps) {
|
|
|
46
47
|
}
|
|
47
48
|
} else if (options.length === 0) {
|
|
48
49
|
axios
|
|
49
|
-
.get(api
|
|
50
|
+
.get(api, {
|
|
51
|
+
workspace: false,
|
|
52
|
+
})
|
|
50
53
|
.then((response) => {
|
|
51
54
|
setOptions(
|
|
52
55
|
api == '/square/quotas' ? response.data : response.data.quota,
|
|
@@ -33,6 +33,7 @@ const SemesterSelector = (props: SemesterSelectorProps) => {
|
|
|
33
33
|
axios
|
|
34
34
|
.get(api, {
|
|
35
35
|
params: filters,
|
|
36
|
+
workspace: false,
|
|
36
37
|
})
|
|
37
38
|
.then((response) => {
|
|
38
39
|
setOptions(response.data)
|
|
@@ -44,7 +45,9 @@ const SemesterSelector = (props: SemesterSelectorProps) => {
|
|
|
44
45
|
}
|
|
45
46
|
} else if (options.length === 0) {
|
|
46
47
|
axios
|
|
47
|
-
.get(api
|
|
48
|
+
.get(api, {
|
|
49
|
+
workspace: false,
|
|
50
|
+
})
|
|
48
51
|
.then((response) => {
|
|
49
52
|
setOptions(response.data)
|
|
50
53
|
})
|