Skip to content

Commit

Permalink
💚 Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mit-27 committed May 27, 2024
1 parent 7cca963 commit 03e5114
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/embedded-catalog/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions apps/magic-link/src/hooks/useOAuth.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -15,7 +15,7 @@ type UseOAuthProps = {

const useOAuth = ({ providerName, vertical, returnUrl, projectId, linkedUserId, optionalApiUrl, onSuccess }: UseOAuthProps) => {
const [isReady, setIsReady] = useState(false);
const intervalRef = useRef<NodeJS.Timeout | null>(null);
const intervalRef = useRef<number | ReturnType<typeof setInterval> | null>(null);
const authWindowRef = useRef<Window | null>(null);

useEffect(() => {
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 03e5114

Please sign in to comment.