Update dependency date-fns to v3 (#81625)

* Update dependency date-fns to v3

* update imports

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
renovate[bot]
2024-01-31 12:05:38 +00:00
committed by GitHub
parent e0054c06fe
commit 42fe0fdf70
6 changed files with 13 additions and 17 deletions

View File

@@ -65,7 +65,7 @@
"calculate-size": "1.1.1",
"classnames": "2.5.1",
"d3": "7.8.5",
"date-fns": "2.30.0",
"date-fns": "3.3.1",
"hoist-non-react-statics": "3.3.2",
"i18next": "^22.0.0",
"i18next-browser-languagedetector": "^7.0.2",

View File

@@ -1,4 +1,4 @@
import formatDuration from 'date-fns/formatDuration';
import { formatDuration } from 'date-fns';
import React, { PureComponent } from 'react';
import { SelectableValue, parseDuration } from '@grafana/data';