Migrate to typescript

This commit is contained in:
prototypa
2023-01-02 10:51:51 -05:00
parent ba0e67b55f
commit f158d32181
28 changed files with 172 additions and 85 deletions

10
src/utils/utils.ts Normal file
View File

@ -0,0 +1,10 @@
/* eslint-disable no-mixed-spaces-and-tabs */
/** */
export const getFormattedDate = (date) =>
date
? new Date(date).toLocaleDateString('en-us', {
year: 'numeric',
month: 'short',
day: 'numeric',
})
: '';