Skip to content

Commit

Permalink
Merge pull request #169 from RafaDSan/refactor/155-end-date
Browse files Browse the repository at this point in the history
refactor: endDate look changed/ endDate string changed to 'Ended' whe…
  • Loading branch information
0xneves authored Feb 2, 2024
2 parents a33a3ad + fe201fc commit d61806c
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 d61806c

Please sign in to comment.