Skip to content

Commit

Permalink
hotfix :: response변경
Browse files Browse the repository at this point in the history
  • Loading branch information
KANGYONGSU23 committed Dec 6, 2023
1 parent 06c118b commit 4f50479
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
9 changes: 4 additions & 5 deletions src/apis/recruitments/type.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
export interface RecruitmentsListResponseType {
recruitments: RecruitmentsListType[];
recruitments: RecruitmentsListType[];
}

export interface RecruitmentsListType {
recruit_id: number;
id: number;
company_name: string;
company_profile_url: string;
train_pay: number;
military: boolean;
total_hiring: number;
job_code_list: string;
military_support: boolean;
hiring_jobs: number;
bookmarked: boolean;
}

Expand Down
14 changes: 7 additions & 7 deletions src/components/recruitments/RecruitmentsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ export default function RecruitmentsCard({ maxLength = 12 }: PropsType) {
company_profile_url,
company_name,
train_pay,
job_code_list,
hiring_jobs,
bookmarked,
recruit_id,
military,
id,
military_support,
},
index
) => (
<HoverPrefetchLink
href={`/recruitments/detail?id=${recruit_id}`}
href={`/recruitments/detail?id=${id}`}
key={index}
>
<div className="flex flex-col w-full overflow-hidden transition duration-200 cursor-pointer shadow-elevaiton rounded-xl hover:transition hover:scale-105">
Expand All @@ -54,21 +54,21 @@ export default function RecruitmentsCard({ maxLength = 12 }: PropsType) {
</div>
<div className="relative bg-[#fafafa] p-[14px] flex-1 flex flex-col">
<p className="mr-8 text-black text-b2 leading-b2 font-b">
{job_code_list}
{hiring_jobs}
</p>
<p className="text-b3 leading-b3 font-r text-[#444444] mt-1">
{company_name}
</p>
<div className="flex content-end mt-[10px] flex-wrap w-full overflow-x-scroll whitespace-nowrap gap-1 flex-1">
<div className="tagStyle">실습수당 {money_regex(train_pay)}</div>
{military && <div className="tagStyle">병역특례</div>}
{military_support && <div className="tagStyle">병역특례</div>}
</div>
<button
className="w-6 h-6 absolute top-[14px] right-[14px] flex items-center justify-center bg-none border-none cursor-pointer"
aria-label="bookMarkBtn"
onClick={(event: React.MouseEvent<HTMLElement>) => {
event.preventDefault();
SetBookmarksMutate(recruit_id);
SetBookmarksMutate(id);
}}
>
<Icon
Expand Down

0 comments on commit 4f50479

Please sign in to comment.