Skip to content

Commit

Permalink
refactor: endDate look changed/ endDate string changed to 'Ended' whe…
Browse files Browse the repository at this point in the history
…n finished
  • Loading branch information
RafaDSan committed Jan 25, 2024
1 parent a33a3ad commit fe201fc
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/components/Task/CardTask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,20 @@ export const CardTask = ({ taskId, taskData, loading }: any) => {
startIcon={<AccessTime />}
variant="contained"
component="span"
style={{
backgroundColor:
taskData.status === "Completed"
? "green"
: taskData.status === "Canceled"
? "red"
: "initial",
color: "white",
fontWeight: "bold",
borderRadius: "12px",
padding: "6px 16px",
}}
>
End Date: {taskData.endDate}
{taskData.status === "Completed" || taskData.status === "Canceled" ? "Ended" : `End Date: ${taskData.endDate}`}
</Button>
</Box>
</CardContent>
Expand Down

0 comments on commit fe201fc

Please sign in to comment.