From 870d2254389492a684c0932f740677e787404cd1 Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Fri, 21 Nov 2025 17:05:17 +0100 Subject: [PATCH] fixed ts-errors --- resources/js/admin/pages/EventDetailPage.tsx | 2 +- resources/js/admin/pages/EventInvitesPage.tsx | 2 +- resources/js/admin/pages/EventPhotosPage.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/admin/pages/EventDetailPage.tsx b/resources/js/admin/pages/EventDetailPage.tsx index e6c040f..fde9e1f 100644 --- a/resources/js/admin/pages/EventDetailPage.tsx +++ b/resources/js/admin/pages/EventDetailPage.tsx @@ -192,7 +192,7 @@ export default function EventDetailPage({ mode = 'detail' }: EventDetailPageProp ); const shownWarningToasts = React.useRef>(new Set()); - const [addonBusyId, setAddonBusyId] = React.useState(null); + //const [addonBusyId, setAddonBusyId] = React.useState(null); const handleAddonPurchase = React.useCallback( async (scope: 'photos' | 'guests' | 'gallery', addonKeyOverride?: string) => { diff --git a/resources/js/admin/pages/EventInvitesPage.tsx b/resources/js/admin/pages/EventInvitesPage.tsx index f9fd9c5..6a57a6e 100644 --- a/resources/js/admin/pages/EventInvitesPage.tsx +++ b/resources/js/admin/pages/EventInvitesPage.tsx @@ -778,7 +778,7 @@ export default function EventInvitesPage(): React.ReactElement { const [addonBusy, setAddonBusy] = React.useState(null); const [addonsCatalog, setAddonsCatalog] = React.useState([]); - const [searchParams] = useSearchParams(); + //const [searchParams] = useSearchParams(); const handleAddonPurchase = React.useCallback( async (addonKey?: string) => { diff --git a/resources/js/admin/pages/EventPhotosPage.tsx b/resources/js/admin/pages/EventPhotosPage.tsx index be2c7eb..98d11de 100644 --- a/resources/js/admin/pages/EventPhotosPage.tsx +++ b/resources/js/admin/pages/EventPhotosPage.tsx @@ -37,7 +37,7 @@ export default function EventPhotosPage() { const [limits, setLimits] = React.useState(null); const [addons, setAddons] = React.useState([]); const [catalogError, setCatalogError] = React.useState(undefined); - const [searchParams, setSearchParams] = React.useState(() => new URLSearchParams(window.location.search)); + //const [searchParams, setSearchParams] = React.useState(() => new URLSearchParams(window.location.search)); const [eventAddons, setEventAddons] = React.useState([]); const load = React.useCallback(async () => {