Skip to content

Commit

Permalink
iiitl#4: Add Time stamp
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushkumar079 committed Mar 16, 2024
1 parent 50a9b8b commit 3f88360
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
14 changes: 14 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"date-fns": "^2.28.0",
"dateformat": "^5.0.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-router-dom": "^6.3.0",
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/components/TaskDetails.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useTasksContext } from "../hooks/usetasksContext";
import { useAuthContext } from "../hooks/useAuthContext";

import dateFormat from "dateformat";
const TaskDetails = ({ task }) => {
const { dispatch } = useTasksContext();
const { user } = useAuthContext();
Expand Down Expand Up @@ -35,6 +35,9 @@ const TaskDetails = ({ task }) => {
<strong>Progress: </strong>
{task.progress}
</p>
<p>
{dateFormat(task.createdAt,"longDate")}
</p>
<span className="material-symbols-outlined" onClick={handleClick}>
delete
</span>
Expand Down

0 comments on commit 3f88360

Please sign in to comment.