Skip to content

Commit

Permalink
fix token preview page barcode and other layout adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Dec 14, 2024
1 parent 211e3de commit 7f2997e
Show file tree
Hide file tree
Showing 9 changed files with 318 additions and 100 deletions.
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
},
"dependencies": {
"@fontsource/figtree": "^5.1.1",
"@fontsource/libre-barcode-39": "^5.1.0",
"@googlemaps/react-wrapper": "^1.1.42",
"@googlemaps/typescript-guards": "^2.0.3",
"@headlessui/react": "^2.2.0",
Expand Down
6 changes: 5 additions & 1 deletion src/components/Schedule/AppointmentCreatePage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { format, isSameDay, parseISO } from "date-fns";
import { navigate } from "raviger";
import { useState } from "react";
import { toast } from "sonner";

Expand Down Expand Up @@ -76,9 +77,12 @@ export default function AppointmentCreatePage(props: Props) {
ScheduleAPIs.appointments.create,
{
pathParams: { facility_id: props.facilityId },
onResponse: ({ res }) => {
onResponse: ({ res, data }) => {
if (res?.ok) {
toast.success("Appointment created successfully");
navigate(
`/facility/${props.facilityId}/appointments/${data?.id}/token`,
);
}
},
},
Expand Down
Loading

0 comments on commit 7f2997e

Please sign in to comment.