diff --git a/src/components/Schedule/Appointments/AppointmentCreatePage.tsx b/src/components/Schedule/Appointments/AppointmentCreatePage.tsx index 1ea55aad66d..772e7b90361 100644 --- a/src/components/Schedule/Appointments/AppointmentCreatePage.tsx +++ b/src/components/Schedule/Appointments/AppointmentCreatePage.tsx @@ -30,6 +30,8 @@ import { } from "@/components/Schedule/Appointments/utils"; import { ScheduleAPIs } from "@/components/Schedule/api"; +import useAppHistory from "@/hooks/useAppHistory"; + import mutate from "@/Utils/request/mutate"; import query from "@/Utils/request/query"; import { dateQueryString, formatDisplayName, formatName } from "@/Utils/utils"; @@ -41,6 +43,7 @@ interface Props { export default function AppointmentCreatePage(props: Props) { const { t } = useTranslation(); + const { goBack } = useAppHistory(); const [resourceId, setResourceId] = useState(); const [selectedMonth, setSelectedMonth] = useState(new Date()); @@ -363,7 +366,9 @@ export default function AppointmentCreatePage(props: Props) {
- +