From 0532c6842f22abf7ae7cb35d9ba1c942dc1f9a15 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 10 Apr 2024 23:11:51 +0700 Subject: [PATCH] feat: user type => roleData --- src/stores/user/types.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/stores/user/types.ts b/src/stores/user/types.ts index c17d8d1a..d383f194 100644 --- a/src/stores/user/types.ts +++ b/src/stores/user/types.ts @@ -71,7 +71,7 @@ export type UserCreate = { firstName: string; userRole: string; userType: string; - keycloakId: string; + keycloakId?: string; profileImage?: File | null; // required but not strict birthDate?: Date | null; responsibleArea: string; @@ -100,9 +100,15 @@ export type UserTypeStats = { export type UserOption = { hqOpts: Option[]; brOpts: Option[]; + roleOpts: Option[]; }; export type Option = { label: string; value: string; }; + +export type RoleData = { + id: string; + name: string; +}