⬆️ Upgrade dependencies
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
"prop-types": "15.8.1",
|
||||
"qs": "6.11.0",
|
||||
"react-frame-component": "5.2.4",
|
||||
"react-phone-number-input": "3.2.15",
|
||||
"react-phone-number-input": "3.2.16",
|
||||
"react-scroll": "1.8.9",
|
||||
"react-transition-group": "4.4.5",
|
||||
"resize-observer": "1.0.4"
|
||||
@@ -26,16 +26,16 @@
|
||||
"@types/qs": "6.9.7",
|
||||
"@types/react": "18.0.26",
|
||||
"@types/react-phone-number-input": "3.0.14",
|
||||
"@types/react-scroll": "1.8.5",
|
||||
"@types/react-scroll": "1.8.6",
|
||||
"@types/react-transition-group": "4.4.5",
|
||||
"autoprefixer": "10.4.13",
|
||||
"db": "workspace:*",
|
||||
"esbuild": "^0.16.15",
|
||||
"esbuild": "^0.17.0",
|
||||
"eslint": "8.31.0",
|
||||
"eslint-config-custom": "workspace:*",
|
||||
"models": "workspace:*",
|
||||
"postcss": "8.4.21",
|
||||
"prettier": "2.8.2",
|
||||
"prettier": "2.8.3",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"tailwindcss": "3.2.4",
|
||||
|
||||
@@ -18,10 +18,11 @@ export const parseReadableDate = ({
|
||||
minute: hasTime ? '2-digit' : undefined,
|
||||
}
|
||||
const fromReadable = new Date(
|
||||
from.replace(/-/g, '/').replace(/T.+/, '')
|
||||
hasTime ? from : from.replace(/-/g, '/')
|
||||
).toLocaleString(currentLocale, formatOptions)
|
||||
console.log(to, to.replace(/-/g, '/'))
|
||||
const toReadable = new Date(
|
||||
to.replace(/-/g, '/').replace(/T.+/, '')
|
||||
hasTime ? to : to.replace(/-/g, '/')
|
||||
).toLocaleString(currentLocale, formatOptions)
|
||||
return `${fromReadable}${isRange ? ` to ${toReadable}` : ''}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user