From a9b8a573663f68b9fdcbfeacb4f4cb04ef473d3d Mon Sep 17 00:00:00 2001 From: hyuna Date: Sun, 27 Oct 2024 23:11:53 +0900 Subject: [PATCH] =?UTF-8?q?fix=20::=20=EA=B8=B0=EC=97=85=EC=83=81=EC=84=B8?= =?UTF-8?q?=EB=B3=B4=EA=B8=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/companies/type.ts | 6 ----- src/components/company/CompanyTable.tsx | 30 +------------------------ 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/src/apis/companies/type.ts b/src/apis/companies/type.ts index e704c65..1f2f480 100644 --- a/src/apis/companies/type.ts +++ b/src/apis/companies/type.ts @@ -23,13 +23,7 @@ export interface CompaniesDetailsTable { main_address: string; main_address_detail: string; sub_zip_code: string | null; - sub_address: string | null; - sub_address_detail: string | null; manager_name: string; - manager_phone_no: string; - sub_manager_name: string | null; - sub_manager_phone_no: string | null; - fax: string | null; email: string; representative_name: string; representative_phone_no: string; diff --git a/src/components/company/CompanyTable.tsx b/src/components/company/CompanyTable.tsx index 0c5a0ed..dd394b3 100644 --- a/src/components/company/CompanyTable.tsx +++ b/src/components/company/CompanyTable.tsx @@ -13,13 +13,7 @@ function CompanyTable({ ...rest }: CompaniesDetailsTable) { main_address, main_address_detail, sub_zip_code, - sub_address, - sub_address_detail, manager_name, - manager_phone_no, - sub_manager_name, - sub_manager_phone_no, - fax, email, founded_at, take, @@ -60,38 +54,16 @@ function CompanyTable({ ...rest }: CompaniesDetailsTable) { ({main_zip_code}) {main_address}({main_address_detail}) - - 지점 주소 - - {(sub_zip_code && - sub_address && - sub_address_detail && - `(${sub_zip_code}) ${sub_address}(${sub_address_detail})`) || - "-"} - - 담당자 {manager_name} 담당자 연락처 - {pon_number_regex(manager_phone_no)} - - - 부담당자 - {sub_manager_name || "-"} - - - 부담당자 연락처 - {pon_number_regex(sub_manager_phone_no) || "-"} + {pon_number_regex(representative_phone_no)} - - 팩스번호 - {pon_number_regex(fax) || "-"} - 이메일 {email}