This is a breaking change, moment is no longer with us, let us have a dayjs of silence.
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useMutation } from "@apollo/client";
|
||||
import { Dropdown, Menu, notification } from "antd";
|
||||
import moment from "moment";
|
||||
import dayjs from "../../utils/day";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
@@ -34,8 +34,8 @@ export function ScheduleBlockDay({
|
||||
block: true,
|
||||
isintake: false,
|
||||
bodyshopid: bodyshop.id,
|
||||
start: moment(date).startOf("day"),
|
||||
end: moment(date).endOf("day"),
|
||||
start: dayjs(date).startOf("day"),
|
||||
end: dayjs(date).endOf("day"),
|
||||
};
|
||||
logImEXEvent("dashboard_change_layout");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user