Skip to content

Commit

Permalink
fix :: 기업상세보기 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
phyuna0525 authored Oct 27, 2024
2 parents c319d89 + a9b8a57 commit 22d785f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
6 changes: 0 additions & 6 deletions src/apis/companies/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
30 changes: 1 addition & 29 deletions src/components/company/CompanyTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -60,38 +54,16 @@ function CompanyTable({ ...rest }: CompaniesDetailsTable) {
({main_zip_code}) {main_address}({main_address_detail})
</td>
</tr>
<tr>
<td className="key">지점 주소</td>
<td className="value">
{(sub_zip_code &&
sub_address &&
sub_address_detail &&
`(${sub_zip_code}) ${sub_address}(${sub_address_detail})`) ||
"-"}
</td>
</tr>
<tr>
<td className="key">담당자</td>
<td className="value">{manager_name}</td>
</tr>
<tr>
<td className="key">담당자 연락처</td>
<td className="value">{pon_number_regex(manager_phone_no)}</td>
</tr>
<tr>
<td className="key">부담당자</td>
<td className="value">{sub_manager_name || "-"}</td>
</tr>
<tr>
<td className="key">부담당자 연락처</td>
<td className="value">
{pon_number_regex(sub_manager_phone_no) || "-"}
{pon_number_regex(representative_phone_no)}
</td>
</tr>
<tr>
<td className="key">팩스번호</td>
<td className="value">{pon_number_regex(fax) || "-"}</td>
</tr>
<tr>
<td className="key">이메일</td>
<td className="value">{email}</td>
Expand Down

0 comments on commit 22d785f

Please sign in to comment.