From 03e5114881e72f889b70494138d16b827d144652 Mon Sep 17 00:00:00 2001 From: mit-27 Date: Mon, 27 May 2024 12:59:23 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/embedded-catalog/react/package.json | 1 + apps/magic-link/src/hooks/useOAuth.ts | 6 +++--- pnpm-lock.yaml | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/embedded-catalog/react/package.json b/apps/embedded-catalog/react/package.json index 93b967b44..efd8bdcdf 100644 --- a/apps/embedded-catalog/react/package.json +++ b/apps/embedded-catalog/react/package.json @@ -22,6 +22,7 @@ }, "dependencies": { "@panora/shared": "workspace:^", + "lucide-react": "^0.344.0", "@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-slot": "^1.0.2", "@tanstack/react-query": "^5.12.2", diff --git a/apps/magic-link/src/hooks/useOAuth.ts b/apps/magic-link/src/hooks/useOAuth.ts index 87a900d40..5f39fe7d8 100644 --- a/apps/magic-link/src/hooks/useOAuth.ts +++ b/apps/magic-link/src/hooks/useOAuth.ts @@ -1,11 +1,11 @@ import config from '@/helpers/config'; import { useState, useEffect, useRef } from 'react'; -import { ConnectorCategory, constructAuthUrl } from '@panora/shared/src/test'; +import { constructAuthUrl } from '@panora/shared/src/test'; type UseOAuthProps = { clientId?: string; providerName: string; // Name of the OAuth provider - vertical: ConnectorCategory; // Vertical (Crm, Ticketing, etc) + vertical: string; // Vertical (Crm, Ticketing, etc) returnUrl: string; // Return URL after OAuth flow projectId: string; // Project ID linkedUserId: string; // Linked User ID @@ -15,7 +15,7 @@ type UseOAuthProps = { const useOAuth = ({ providerName, vertical, returnUrl, projectId, linkedUserId, optionalApiUrl, onSuccess }: UseOAuthProps) => { const [isReady, setIsReady] = useState(false); - const intervalRef = useRef(null); + const intervalRef = useRef | null>(null); const authWindowRef = useRef(null); useEffect(() => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9515fb60a..cf5aa1096 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -244,6 +244,9 @@ importers: clsx: specifier: ^2.1.0 version: 2.1.0 + lucide-react: + specifier: ^0.344.0 + version: 0.344.0(react@18.2.0) react-loader-spinner: specifier: ^5.4.5 version: 5.5.0(@babel/core@7.24.4)(react-dom@18.2.0)(react@18.2.0)