Skip to content

Commit

Permalink
update import for Locale & bump date-fns version to match
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffGreiner-eaton committed Jan 2, 2024
1 parent 1812c40 commit d7970f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion login-workflow/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@types/node": "^17.0.23",
"@types/react": "^18.0.31",
"@types/react-dom": "^18.0.0",
"date-fns": "^2.29.2",
"date-fns": "^3.0.6",
"i18next": "^23.2.11",
"react": "^18.2.0",
"react-app-polyfill": "^3.0.0",
Expand Down
10 changes: 4 additions & 6 deletions login-workflow/example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4305,12 +4305,10 @@ data-urls@^2.0.0:
whatwg-mimetype "^2.3.0"
whatwg-url "^8.0.0"

date-fns@^2.29.2:
version "2.30.0"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0"
integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==
dependencies:
"@babel/runtime" "^7.21.0"
date-fns@^3.0.6:
version "3.0.6"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.0.6.tgz#fe3aeb7592d359f075ffc41cb16139828810ca83"
integrity sha512-W+G99rycpKMMF2/YD064b2lE7jJGUe+EjOES7Q8BIGY8sbNdbgcs9XFTZwvzc9Jx1f3k7LB7gZaZa7f8Agzljg==

[email protected], debug@^2.6.0:
version "2.6.9"
Expand Down
2 changes: 1 addition & 1 deletion login-workflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@emotion/styled": "^11.6.0",
"@mui/icons-material": "^5.10.15",
"@mui/material": "^5.10.15",
"date-fns": "^2.14.0",
"date-fns": "^3.0.6",
"i18next": "^23.0.1",
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.6 || ^17.0.0 || ^18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion login-workflow/src/utils/i18nUtils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import i18n from 'i18next';
import { fr, enUS, es, zhCN, ptBR } from 'date-fns/locale';
import { fr, enUS, es, zhCN, ptBR, Locale } from 'date-fns/locale';

// for getting the device's language locale
// 'en' is default deviceLocale
Expand Down

0 comments on commit d7970f9

Please sign in to comment.