refactor(moment): Replace Moment.js with DayJs (#31310)

This commit is contained in:
Mehmet Salih Yavuz
2024-12-23 20:42:43 +03:00
committed by GitHub
parent b382ef1058
commit a193d790b2
41 changed files with 268 additions and 212 deletions

View File

@@ -18,7 +18,6 @@
* under the License.
*/
import { ReactNode } from 'react';
import moment from 'moment';
import {
formatNumber,
formatTime,
@@ -35,6 +34,7 @@ import {
XYChart,
buildChartTheme,
} from '@visx/xychart';
import { extendedDayjs } from 'src/utils/dates';
interface Props {
ariaLabel: string;
@@ -223,7 +223,7 @@ const SparklineCell = ({
{idx !== undefined &&
formatTime(
dateFormat,
moment.utc(entries[idx].time).toDate(),
extendedDayjs.utc(entries[idx].time).toDate(),
)}
</div>
</div>