@campxdev/shared 1.11.24 → 1.11.25
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/constants/UIConstants.ts +10 -0
package/package.json
CHANGED
|
@@ -4,6 +4,16 @@ export const batchOptions = Array.from({ length: 12 }, (_, i) => {
|
|
|
4
4
|
return `${2012 + i} - ${2012 + i + 1}`
|
|
5
5
|
}).reverse()
|
|
6
6
|
|
|
7
|
+
export const getYears = () => {
|
|
8
|
+
const start = 2019
|
|
9
|
+
const end = new Date().getFullYear() + 3
|
|
10
|
+
const values = new Array(end - start).fill(0).map((_, i) => ({
|
|
11
|
+
label: `${start + i}`,
|
|
12
|
+
value: `${start + i}`,
|
|
13
|
+
}))
|
|
14
|
+
return values.reverse()
|
|
15
|
+
}
|
|
16
|
+
|
|
7
17
|
export const examGroupBatches = Array.from({ length: 10 }, (_, i) => {
|
|
8
18
|
return `${2012 + i} - ${2012 + i + 1}`
|
|
9
19
|
})
|