feat: quiz submission history table
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { toast } from 'frappe-ui'
|
||||
import { useDateFormat, useTimeAgo } from '@vueuse/core'
|
||||
|
||||
export function createToast(options) {
|
||||
toast({
|
||||
@@ -6,3 +7,7 @@ export function createToast(options) {
|
||||
...options,
|
||||
})
|
||||
}
|
||||
|
||||
export function timeAgo(date) {
|
||||
return useTimeAgo(date).value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user