Skip to content

Commit

Permalink
chore: fix different versions of date-fns
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj committed Oct 8, 2024
1 parent 3b67c53 commit 390ee8e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/studio/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export const MockDateDecorator: Decorator<Args> = (story, { parameters }) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
mockdate.set(parameters.mockdate)

// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
const mockedDate = format(parameters.mockdate, "dd-mm-yyyy HH:mma")

return (
Expand Down
2 changes: 1 addition & 1 deletion apps/studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"@trpc/react-query": "10.45.0",
"@trpc/server": "10.45.0",
"ajv": "^8.16.0",
"date-fns": "^3.6.0",
"date-fns": "^4.1.0",
"date-fns-tz": "^3.1.3",
"flat": "^6.0.1",
"fuzzysort": "^2.0.4",
Expand Down
12 changes: 11 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 390ee8e

Please sign in to comment.