File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,4 +96,5 @@ export const REACT_COMPILED_FILES = [
9696 "apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx" ,
9797 "apps/web/src/components/ThreadTerminalDrawer.tsx" ,
9898 "apps/web/src/components/settings/SettingsPanels.tsx" ,
99+ "apps/web/src/components/clerk/T3ConnectAccountPages.tsx" ,
99100] as const ;
Original file line number Diff line number Diff line change 11import { useAuth , useClerk } from "@clerk/react" ;
22import { ServerIcon , SmartphoneIcon } from "lucide-react" ;
3- import { type ReactNode , useCallback , useState } from "react" ;
3+ import { type ReactNode , useState } from "react" ;
44import { createPortal } from "react-dom" ;
55
66import { MobileClientsUserProfilePage } from "./MobileClientsUserProfilePage" ;
@@ -35,7 +35,7 @@ export function useT3ConnectAccountPage(): {
3535 const { isSignedIn } = useAuth ( ) ;
3636 const [ targets , setTargets ] = useState < PortalTargets > ( { } ) ;
3737
38- const open = useCallback ( ( ) => {
38+ const open = ( ) => {
3939 const setTarget = ( key : string , element : HTMLDivElement | undefined ) =>
4040 setTargets ( ( current ) => ( { ...current , [ key ] : element } ) ) ;
4141 clerk . openUserProfile ( {
@@ -49,7 +49,7 @@ export function useT3ConnectAccountPage(): {
4949 unmountIcon : ( ) => setTarget ( `icon:${ page . url } ` , undefined ) ,
5050 } ) ) ,
5151 } ) ;
52- } , [ clerk ] ) ;
52+ } ;
5353
5454 const portals = T3_CONNECT_ACCOUNT_PAGES . flatMap ( ( page ) => {
5555 const content = targets [ `content:${ page . url } ` ] ;
You can’t perform that action at this time.
0 commit comments