Skip to content

Commit

Permalink
Merge pull request #77 from DSM-Repo/refactor
Browse files Browse the repository at this point in the history
fix: 거부된 피드백도 보이게 수정
  • Loading branch information
six-standard authored Sep 15, 2024
2 parents 77f71b9 + c4fdfbb commit 8f8b341
Showing 1 changed file with 43 additions and 50 deletions.
93 changes: 43 additions & 50 deletions packages/teacher/src/page/Resume.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,58 +103,51 @@ export const Resume = () => {
content: (
<div className="col-flex gap-2">
{feedbacks?.data.length !== 0 ? (
feedbacks?.data.map(
(i) =>
!i.rejected && (
<div className="col-flex gap-1">
<TextArea
onChange={() => {}}
placeholder=""
size="full"
value={i.comment}
disabled
/>
<div className="w-full flex items-center justify-between">
<span className="text-[16px] text-light text-green-400">
{i.status === "CONFIRMED"
? "반영된 피드백"
: ""}
feedbacks?.data.map((i) => (
<div className="col-flex gap-1">
<TextArea
onChange={() => {}}
placeholder=""
size="full"
value={i.comment}
disabled
/>
<div className="w-full flex items-center justify-between">
<span className="text-[16px] text-light text-green-400">
{i.status === "CONFIRMED" ? "반영된 피드백" : ""}
</span>
<div className="flex gap-2 items-center">
{i.status === "CONFIRMED" ? (
<>
<span
className="text-[15px] cursor-pointer"
onClick={() =>
confirm(`?id=${i.id}`, { onSuccess })
}
>
수락
</span>
<span
className="text-[15px] cursor-pointer"
onClick={() =>
reject(`?id=${i.id}`, { onSuccess })
}
>
거절
</span>
</>
) : (
<span
className="text-[15px] cursor-pointer"
onClick={() => del(`/${i.id}`, { onSuccess })}
>
삭제
</span>
<div className="flex gap-2 items-center">
{i.status === "CONFIRMED" ? (
<>
<span
className="text-[15px] cursor-pointer"
onClick={() =>
confirm(`?id=${i.id}`, { onSuccess })
}
>
수락
</span>
<span
className="text-[15px] cursor-pointer"
onClick={() =>
reject(`?id=${i.id}`, { onSuccess })
}
>
거절
</span>
</>
) : (
<span
className="text-[15px] cursor-pointer"
onClick={() =>
del(`/${i.id}`, { onSuccess })
}
>
삭제
</span>
)}
</div>
</div>
)}
</div>
)
)
</div>
</div>
))
) : (
<span className="text-[14px]">아직 피드백이 없습니다</span>
)}
Expand Down

0 comments on commit 8f8b341

Please sign in to comment.