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}