+
Upcoming Reservations
+
+ {reservations.length === 0 &&
No reservations
}
+
+
+ {reservations.map((r) => (
+ -
+ Room: {r.roomNumber}
+ Email: {r.guestEmail}
+ From: {r.start} → To: {r.end}
+
+ ))}
+
+
+ );
+}
\ No newline at end of file
diff --git a/ui/src/utils/toasts.tsx b/ui/src/utils/toasts.tsx
index d3358f7..caa3b54 100644
--- a/ui/src/utils/toasts.tsx
+++ b/ui/src/utils/toasts.tsx
@@ -9,24 +9,24 @@ const DEFAULT_TOAST_OPTIONS: ExternalToast = {
duration: DEFAULT_TOAST_DURATION_MS,
};
-export function useShowSuccessToast(message: string) {
+export function useShowSuccessToast() {
return useCallback(
- () =>
+ (message: string) =>
toast.custom(
(t) =>