lint: fix lint errors
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable camelcase */
|
||||
import {
|
||||
createDirectus, rest, authentication, withToken, createItem,
|
||||
readUser, createContentVersion, readContentVersions, saveToContentVersion,
|
||||
@@ -141,7 +140,6 @@ export async function listVersions({
|
||||
|
||||
return versions
|
||||
} catch (error) {
|
||||
|
||||
if (error) {
|
||||
countdownRef.current.startCountdown()
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ export function formatDate(date, formatStr = 'PP', {withTimezone = false} = {})
|
||||
})
|
||||
|
||||
if (withTimezone) {
|
||||
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
const timezone = new Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
return `${formatted} (${timezone})`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user