11import { useOrganization } from '@clerk/shared/react' ;
2- import type { OrganizationProfileModalProps , OrganizationProfileProps , WithInternalRouting } from '@clerk/types' ;
2+ import type { OrganizationProfileModalProps , OrganizationProfileProps } from '@clerk/types' ;
33import React from 'react' ;
4- import type { OrganizationProfileCtx } from 'ui/types' ;
54
65import { OrganizationProfileContext , withCoreUserGuard } from '../../contexts' ;
76import { Flow , localizationKeys } from '../../customizables' ;
87import { NavbarMenuButtonRow , ProfileCard , withCardStateProvider } from '../../elements' ;
98import { Route , Switch } from '../../router' ;
9+ import type { OrganizationProfileCtx } from '../../types' ;
1010import { OrganizationProfileNavbar } from './OrganizationProfileNavbar' ;
1111import { OrganizationProfileRoutes } from './OrganizationProfileRoutes' ;
1212
13- const _OrganizationProfile = ( ) => {
13+ const _OrganizationProfile = ( _ : OrganizationProfileProps ) => {
1414 const { organization } = useOrganization ( ) ;
1515
1616 if ( ! organization ) {
@@ -48,9 +48,6 @@ const AuthenticatedRoutes = withCoreUserGuard(() => {
4848
4949export const OrganizationProfile = withCardStateProvider ( _OrganizationProfile ) ;
5050
51- const InternalOrganizationProfile : React . ComponentType < WithInternalRouting < OrganizationProfileProps > > =
52- withCardStateProvider ( _OrganizationProfile ) ;
53-
5451export const OrganizationProfileModal = ( props : OrganizationProfileModalProps ) : JSX . Element => {
5552 const organizationProfileProps : OrganizationProfileCtx = {
5653 ...props ,
@@ -64,7 +61,7 @@ export const OrganizationProfileModal = (props: OrganizationProfileModalProps):
6461 < OrganizationProfileContext . Provider value = { organizationProfileProps } >
6562 { /*TODO: Used by InvisibleRootBox, can we simplify? */ }
6663 < div >
67- < InternalOrganizationProfile { ...organizationProfileProps } />
64+ < OrganizationProfile { ...organizationProfileProps } />
6865 </ div >
6966 </ OrganizationProfileContext . Provider >
7067 </ Route >
0 commit comments