- nuke visible from the face of the earth with fire.

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-12 17:25:25 -05:00
parent 7d6e61043e
commit ba32a71786
58 changed files with 227 additions and 229 deletions

View File

@@ -57,7 +57,7 @@ export function ScheduleEventComponent({
setScheduleContext,
}) {
const { t } = useTranslation();
const [visible, setVisible] = useState(false);
const [open, setOpen] = useState(false);
const history = useNavigate();
const searchParams = queryString.parse(useLocation().search);
const [updateAppointment] = useMutation(UPDATE_APPOINTMENT);
@@ -223,7 +223,7 @@ export function ScheduleEventComponent({
time: dayjs(event.start).format("HH:mm a"),
})
);
setVisible(false);
setOpen(false);
} else {
notification["error"]({
message: t("messaging.error.invalidphone"),
@@ -290,7 +290,7 @@ export function ScheduleEventComponent({
<Button
disabled={event.arrived}
onClick={() => {
setVisible(false);
setOpen(false);
setScheduleContext({
actions: { refetch: refetch },
context: {
@@ -366,8 +366,8 @@ export function ScheduleEventComponent({
return (
<Popover
open={visible}
onOpenChange={(vis) => !event.vacation && setVisible(vis)}
open={open}
onOpenChange={(vis) => !event.vacation && setOpen(vis)}
trigger="click"
content={event.block ? blockContent : popoverContent}
style={{