From 38e2eef6edb758cd3a312edcbd5729f4f1d19173 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 17 Apr 2024 13:51:55 +0700 Subject: [PATCH] refactor: update type --- src/stores/branch-contact/types.ts | 2 -- src/stores/branch/types.ts | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stores/branch-contact/types.ts b/src/stores/branch-contact/types.ts index d3ec1e41..6ab313a2 100644 --- a/src/stores/branch-contact/types.ts +++ b/src/stores/branch-contact/types.ts @@ -1,6 +1,5 @@ export type BranchContact = { id: string; - lineId: string; telephoneNo: string; qrCodeImageUrl: string; updatedAt: string; @@ -11,6 +10,5 @@ export type BranchContact = { }; export type BranchContactCreate = { - lineId: string; telephoneNo: string; }; diff --git a/src/stores/branch/types.ts b/src/stores/branch/types.ts index 00de4e2e..80469979 100644 --- a/src/stores/branch/types.ts +++ b/src/stores/branch/types.ts @@ -14,7 +14,8 @@ export type Branch = { isHeadOffice: boolean; longitude: string; latitude: string; - telephoneNo: string; + contactName: string; + qrCodeImageUrl: string; email: string; zipCode: string; subDistrictId: string | null; @@ -39,7 +40,8 @@ export type BranchCreate = { address: string; zipCode: string; email: string; - telephoneNo: string; + contactName: string; + telephoneNo: string | string[]; longitude: string; latitude: string; subDistrictId?: string | null;