fix
Deploy banu-front / deploy (push) Successful in 1m19s

This commit is contained in:
sajjadtalkhabi
2026-06-05 14:41:38 +03:30
parent d42b7aaa7b
commit 1c665830b0
27 changed files with 565 additions and 617 deletions
+7 -10
View File
@@ -5,8 +5,11 @@ export const getEnumObject = (enumArray, key = 'value', value = 'label') =>
}, {})
export const ROLES = Object.freeze([
{ value: 'admin', label: 'مدیر' },
{ value: 'student', label: 'دانش‌آموز' },
{ value: 'admin', label: 'مدیر', changeable: false },
{ value: 'student', label: 'دانشجو', changeable: true },
{ value: 'teacher', label: 'استاد', changeable: true },
{ value: 'counselor', label: 'مشاور', changeable: true },
{ value: 'missionary', label: 'مبلغ', changeable: true },
])
export const LOGIN_STEPS = Object.freeze({
@@ -54,15 +57,9 @@ export const GENDER = Object.freeze({
female: 'خانم',
})
export const ROLE_LABELS = Object.freeze({
admin: 'مدیر',
counselor: 'مشاور',
missionary: 'مبلغ',
student: 'دانشجو',
teacher: 'استاد',
})
export const ROLE_LABELS = Object.freeze(Object.fromEntries(ROLES.map((r) => [r.value, r.label])))
export const CHANGEABLE_ROLES = Object.freeze(['student', 'teacher', 'missionary', 'counselor'])
export const CHANGEABLE_ROLES = Object.freeze(ROLES.filter((r) => r.changeable).map((r) => r.value))
export const EDUCATION_STATUS = Object.freeze({
seminary_student: 'طلبه',