Skip to content

Commit

Permalink
refactor: rearrange based on type convention
Browse files Browse the repository at this point in the history
  • Loading branch information
lokba committed Oct 17, 2022
1 parent 5ecc692 commit e89f081
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/components/RecruitmentItem/RecruitmentItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ import { Recruitment } from "../../../types/domains/recruitments";
import CalendarIcon from "../../assets/icon/calendar-icon.svg";
import styles from "./RecruitmentItem.module.css";

export type RecruitmentItemProps = React.HTMLAttributes<HTMLDivElement> & {
className?: string;
recruitment: Recruitment;
onClickButton?: React.MouseEventHandler<HTMLDivElement>;
};

const INDICATOR_LABEL = {
[RECRUITMENT_STATUS.RECRUITING]: "모집 중",
[RECRUITMENT_STATUS.RECRUITABLE]: "모집 예정",
[RECRUITMENT_STATUS.UNRECRUITABLE]: "일시 중지",
[RECRUITMENT_STATUS.ENDED]: "모집 종료",
} as const;

export type RecruitmentItemProps = React.HTMLAttributes<HTMLDivElement> & {
className?: string;
recruitment: Recruitment;
onClickButton?: React.MouseEventHandler<HTMLDivElement>;
};

const RecruitmentItem = ({
className,
recruitment,
Expand Down

0 comments on commit e89f081

Please sign in to comment.