Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix :: 기업상세보기 수정 #74

Merged
merged 1 commit into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading