Skip to content

Commit 2924080

Browse files
authored
Merge branch 'develop' into #75-모집의뢰서-상세보기-수정
2 parents 5b9140c + 7637d12 commit 2924080

2 files changed

Lines changed: 10 additions & 33 deletions

File tree

src/apis/companies/type.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ export interface CompaniesDetailsTable {
2222
main_zip_code: string;
2323
main_address: string;
2424
main_address_detail: string;
25-
sub_zip_code: string | null;
26-
manager_name: string;
27-
email: string;
2825
representative_name: string;
29-
representative_phone_no: string;
3026
founded_at: string;
3127
worker_number: number;
3228
take: number;
@@ -36,10 +32,10 @@ export interface CompaniesDetailsTable {
3632
}
3733

3834
export interface CompaniesForReviewType {
39-
id: number,
40-
name: string,
35+
id: number;
36+
name: string;
4137
}
4238

4339
export interface GetCompaniesForReviewingResponse {
44-
companies : CompaniesForReviewType[]
40+
companies: CompaniesForReviewType[];
4541
}

src/components/company/CompanyTable.tsx

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@ import FilePreview from "../recruitments/apply/FilePreview";
66
function CompanyTable({ ...rest }: CompaniesDetailsTable) {
77
const {
88
representative_name,
9-
representative_phone_no,
109
worker_number,
1110
company_introduce,
1211
main_zip_code,
1312
main_address,
1413
main_address_detail,
15-
sub_zip_code,
16-
manager_name,
17-
email,
1814
founded_at,
1915
take,
2016
service_name,
@@ -30,12 +26,7 @@ function CompanyTable({ ...rest }: CompaniesDetailsTable) {
3026
<td className="key">대표</td>
3127
<td className="value">{representative_name}</td>
3228
</tr>
33-
<tr>
34-
<td className="key">대표 번호</td>
35-
<td className="value">
36-
{pon_number_regex(representative_phone_no) || "-"}
37-
</td>
38-
</tr>
29+
3930
<tr>
4031
<td className="key">직원 수</td>
4132
<td className="value">{worker_number}</td>
@@ -49,29 +40,19 @@ function CompanyTable({ ...rest }: CompaniesDetailsTable) {
4940
<td className="value">{company_introduce}</td>
5041
</tr>
5142
<tr>
52-
<td className="key">회사 주소</td>
43+
<td className="key">회사 주소(본사)</td>
5344
<td className="value">
5445
({main_zip_code}) {main_address}({main_address_detail})
5546
</td>
5647
</tr>
57-
<tr>
58-
<td className="key">담당자</td>
59-
<td className="value">{manager_name}</td>
60-
</tr>
61-
<tr>
62-
<td className="key">담당자 연락처</td>
63-
<td className="value">
64-
{pon_number_regex(representative_phone_no)}
65-
</td>
66-
</tr>
67-
<tr>
68-
<td className="key">이메일</td>
69-
<td className="value">{email}</td>
70-
</tr>
7148
<tr>
7249
<td className="key">설립일</td>
7350
<td className="value">{founded_at}</td>
7451
</tr>
52+
<tr>
53+
<td className="key">직원수</td>
54+
<td className="value">{worker_number}</td>
55+
</tr>
7556
<tr>
7657
<td className="key">연매출</td>
7758
<td className="value">{take} 억원</td>
@@ -85,7 +66,7 @@ function CompanyTable({ ...rest }: CompaniesDetailsTable) {
8566
<td className="value file">
8667
{attachments.length === 0
8768
? "-"
88-
: attachments.map(fileUrl => (
69+
: attachments.map((fileUrl) => (
8970
<FilePreview
9071
fileName={fileUrl.split("/")[1].slice(37)}
9172
onClick={() => {

0 commit comments

Comments
 (0)