Skip to content

Commit

Permalink
feat :: 지원상태 Enum추가
Browse files Browse the repository at this point in the history
  • Loading branch information
KANGYONGSU23 committed Dec 4, 2023
1 parent a609abc commit 05ed25e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/components/mypage/AppliedICompanyItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,21 @@ export default function APpliedCompanyItem({
direction={parentRefHeight === "0px" ? "bottom" : "top"}
/>
</div>
<ApplicationStatus status={application_status} />
<div className="flex flex-row items-center gap-4">
{(application_status === "REQUESTED" ||
application_status === "REJECTED") && (
<p
onClick={(event) => {
event.stopPropagation();
}}
className="underline text-caption leading-caption font-r text-[#7f7f7f] cursor-pointer"
>
재지원하기
</p>
)}

<ApplicationStatus status={application_status} />
</div>
</div>
<div
ref={parentRef}
Expand Down
6 changes: 6 additions & 0 deletions src/util/object/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@ export const departmentEnum = {
export const applicationEnum = {
REQUESTED: "승인요청",
APPROVED: "승인됨",
SEND: "전송",
FAILED: "불합격",
PASS: "합격",
REJECTED: "반려",
FIELD_TRAIN: "현장실습",
ACCEPTANCE: "근로계약",
};

export const applicationStatusStyle = {
REQUESTED: { color: "#7F7F7F", backgroundColor: "#F7F7F7" },
APPROVED: { color: "#2ECC71", backgroundColor: "#E6F8EE" },
SEND: { color: "#873CE7", backgroundColor: "#F0E7FC" },
FAILED: { color: "#E74C3C", backgroundColor: "#FCE9E7" },
PASS: { color: "#237BC9", backgroundColor: "#E4EFF8" },
REJECTED: { color: "#F1C40F", backgroundColor: "#FDF8E2" },
FIELD_TRAIN: { color: "#237BC9", backgroundColor: "#E4EFF8" },
ACCEPTANCE: { color: "#237BC9", backgroundColor: "#E4EFF8" },
};

0 comments on commit 05ed25e

Please sign in to comment.