Skip to content

Commit

Permalink
clean up "due date" text on Task card #69
Browse files Browse the repository at this point in the history
  • Loading branch information
blahosyl committed Aug 16, 2024
1 parent 9fb863a commit 4f3283c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pages/tasks/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,12 +382,17 @@ const Task = (props) => {
>

<Col className={`${styles.DateContainer}`}>
{taskDetail && <span className={`mr-2`}>Due:</span>}
<span className={`mr-2`}>
{(taskDetail || taskList) && "Due"}
{taskDetail && " date"}
{(taskDetail || taskList) && ":"}
</span>
<span>{due_date
? taskDetail
? dayjs(due_date).format('ddd | D MMM YYYY')
: dayjs(due_date).format('D MMM')
: ""
:
(taskDetail || taskList) ? "not specified" : ""
}
</span>
</Col>
Expand Down

0 comments on commit 4f3283c

Please sign in to comment.