Skip to content

Commit

Permalink
fix :: 모집의뢰서 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KANGYONGSU23 committed Nov 4, 2023
1 parent efed81e commit 5dbb436
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/apis/recruitments/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface RecruitmentsDetailTable {
required_licenses: string[] | [];
hiring_progress: HiringProgressType[];
train_pay: number;
pay: number;
pay: string | null;
benefits: string | null;
military: boolean;
submit_document: string;
Expand Down
3 changes: 2 additions & 1 deletion src/components/recruitments/RecruitmentsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { RecruitmentsDetailTable } from "@/apis/recruitments/type";
import { hiringProgressEnum } from "@/util/enum";
import { time_parsing } from "@/util/regex";
import { Icon } from "@team-return/design-system";
import React, { useState } from "react";

Expand Down Expand Up @@ -95,7 +96,7 @@ function RecruitmentsTable({ ...rest }: RecruitmentsDetailTable) {
<tr>
<td className="key">근무시간</td>
<td className="value">
{start_time} ~ {end_time}
{time_parsing(start_time)} ~ {time_parsing(end_time)}
</td>
</tr>
<tr>
Expand Down
4 changes: 4 additions & 0 deletions src/util/regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ export const pon_number_regex = (number: string | null) => {

return number;
};

export const time_parsing = (time: string) => {
return time.slice(0, 5);
};

0 comments on commit 5dbb436

Please sign in to comment.