feat: add tag id to tag context menu (#1185)

This commit is contained in:
Aman Harwara
2022-06-30 21:57:33 +05:30
committed by GitHub
parent 604520f1ae
commit 8b845ea424
8 changed files with 95 additions and 67 deletions

View File

@@ -3,3 +3,11 @@ import { dateToLocalizedString } from '@standardnotes/snjs/'
export const formatLastSyncDate = (lastUpdatedDate: Date) => {
return dateToLocalizedString(lastUpdatedDate)
}
export const formatDateForContextMenu = (date: Date | undefined) => {
if (!date) {
return
}
return `${date.toDateString()} ${date.toLocaleTimeString()}`
}