Fixed up scheduling logic using UTC dates instead of local dates. Updated scheduling header. Fixed month view not showing. BOD-179
This commit is contained in:
@@ -24,10 +24,7 @@ export function ScheduleBlockDay({ date, children, refetch, bodyshop }) {
|
||||
const handleMenu = async (e) => {
|
||||
e.domEvent.stopPropagation();
|
||||
|
||||
|
||||
if (e.key === "block") {
|
||||
|
||||
|
||||
const blockAppt = {
|
||||
title: t("appointments.labels.blocked"),
|
||||
block: true,
|
||||
@@ -38,7 +35,6 @@ export function ScheduleBlockDay({ date, children, refetch, bodyshop }) {
|
||||
};
|
||||
logImEXEvent("dashboard_change_layout");
|
||||
|
||||
|
||||
const result = await insertBlock({
|
||||
variables: { app: [blockAppt] },
|
||||
});
|
||||
@@ -57,9 +53,7 @@ export function ScheduleBlockDay({ date, children, refetch, bodyshop }) {
|
||||
|
||||
const menu = (
|
||||
<Menu onClick={handleMenu}>
|
||||
<Menu.Item key='block'>{t("appointments.actions.block")}</Menu.Item>
|
||||
<Menu.Item key='2'>2nd menu item</Menu.Item>
|
||||
<Menu.Item key='3'>3rd menu item</Menu.Item>
|
||||
<Menu.Item key="block">{t("appointments.actions.block")}</Menu.Item>
|
||||
</Menu>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user