Updated to using managed types instead of
hard coded ones.
This commit is contained in:
@@ -2,22 +2,11 @@ export type UserRole = "user" | "team_admin" | "department_admin" | "field_admin
|
||||
|
||||
export type ShelterStatus = "yes" | "no" | "no_alarm" | "safe_after_exit"
|
||||
|
||||
export type Department = "מאי" | "עדן" | "שניר" | "יקיר"
|
||||
export type Department = string
|
||||
|
||||
export type Team =
|
||||
| "מאי"
|
||||
| "שי"
|
||||
| "תומר"
|
||||
| "ינון"
|
||||
| "עדי"
|
||||
| "לינוי"
|
||||
| "ניצן"
|
||||
| "רונן"
|
||||
| "אופיר"
|
||||
| "הדר"
|
||||
| "יקיר"
|
||||
export type Team = string
|
||||
|
||||
export type Field = "יקיר" | "אורלי" | "מיכאל" | "מאור" | "גלעד"
|
||||
export type Field = string
|
||||
|
||||
export interface User {
|
||||
national_id: string
|
||||
@@ -59,21 +48,3 @@ export const SHELTER_STATUS_NAMES: Record<ShelterStatus, string> = {
|
||||
no_alarm: "אין אזעקה",
|
||||
safe_after_exit: "אני בטוח.ה (סוף אירוע)"
|
||||
}
|
||||
|
||||
export const DEPARTMENTS: Department[] = ["מאי", "עדן", "שניר", "יקיר"]
|
||||
|
||||
export const TEAMS: Team[] = [
|
||||
"מאי",
|
||||
"שי",
|
||||
"תומר",
|
||||
"ינון",
|
||||
"עדי",
|
||||
"לינוי",
|
||||
"ניצן",
|
||||
"רונן",
|
||||
"אופיר",
|
||||
"הדר",
|
||||
"יקיר",
|
||||
]
|
||||
|
||||
export const FIELDS: Field[] = ["יקיר", "אורלי", "מיכאל", "מאור", "גלעד"]
|
||||
|
||||
Reference in New Issue
Block a user