From 7ec87083cea770cb513b169c51f964b521c66767 Mon Sep 17 00:00:00 2001 From: Luccas Mateus Date: Mon, 2 Dec 2024 17:56:12 -0300 Subject: [PATCH] Fix build --- .../frontend/src/components/_shared/map/controls/Search.tsx | 2 +- deployment/frontend/src/server/auth.ts | 1 + deployment/frontend/src/utils/notify.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deployment/frontend/src/components/_shared/map/controls/Search.tsx b/deployment/frontend/src/components/_shared/map/controls/Search.tsx index 6c989c644..b27495d7d 100644 --- a/deployment/frontend/src/components/_shared/map/controls/Search.tsx +++ b/deployment/frontend/src/components/_shared/map/controls/Search.tsx @@ -46,7 +46,7 @@ export default function Search({ } }, []) - const debouncedOnMapViewportChange = useDebouncedCallback((v) => { + const debouncedOnMapViewportChange = useDebouncedCallback((v: any) => { setViewState(v) }, 250) diff --git a/deployment/frontend/src/server/auth.ts b/deployment/frontend/src/server/auth.ts index 28cce3ea5..04d06b8df 100644 --- a/deployment/frontend/src/server/auth.ts +++ b/deployment/frontend/src/server/auth.ts @@ -155,6 +155,7 @@ export const authOptions: NextAuthOptions = { const user: CkanResponse< User & { frontend_token: string } > = await userRes.json() + console.log('USER', user) if ((user.result as any).errors) { // TODO: error from the response should be sent to the client, but it's not working diff --git a/deployment/frontend/src/utils/notify.ts b/deployment/frontend/src/utils/notify.ts index ca2a47c96..19c60c65c 100644 --- a/deployment/frontend/src/utils/notify.ts +++ b/deployment/frontend/src/utils/notify.ts @@ -1,7 +1,7 @@ import { toast, ToastContent, ToastOptions } from "react-toastify"; export default function notify( - text: ToastContent, + text: any, severity: "success" | "error" = "success" ) { /*