Commit d84cf59e authored by insert's avatar insert

Display date and fix dot appearing wrongly.

parent 797423f6
......@@ -37,9 +37,13 @@ export default memo((props: { task: Assignment, active: boolean, select: (id: st
task.class &&
` — ${task.class}`
}
{
(task.subject || task.class)
&& ` · `
}
{
validDate(due) &&
` · due ${moment(due).fromNow()}`
`due ${moment(due).calendar()}`
}
</Typography>
<br />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment