updates
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
export const DEPARTMENT_ASSIGNMENT_TYPE_OPTIONS = [
|
||||
{ value: "none", label: "None" },
|
||||
{ value: "bays", label: "Bays" },
|
||||
{ value: "outsourced", label: "Outsourced" },
|
||||
] as const
|
||||
import { AssignmentType } from "@garage/api"
|
||||
|
||||
export type DepartmentAssignmentType = typeof DEPARTMENT_ASSIGNMENT_TYPE_OPTIONS[number]["value"]
|
||||
export const DEPARTMENT_ASSIGNMENT_TYPE_OPTIONS = AssignmentType.map((v) => ({
|
||||
value: v,
|
||||
label: v.charAt(0).toUpperCase() + v.slice(1),
|
||||
}))
|
||||
|
||||
export type DepartmentAssignmentType = (typeof AssignmentType)[number]
|
||||
|
||||
Reference in New Issue
Block a user