CLASSROOMIO-T-108: Add grading score to Graded column

This commit is contained in:
Rotimi Best
2023-10-02 04:15:01 +01:00
parent 21305c5d65
commit 93f674b04b
8 changed files with 48 additions and 41 deletions
+8
View File
@@ -0,0 +1,8 @@
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
dayjs.extend(relativeTime);
export const calDateDiff = (date: string | number | Date): string => {
return dayjs(date).fromNow(true) + ` ago`;
};