1
1
import { useOrganization } from '@clerk/shared/react' ;
2
- import type { OrganizationProfileModalProps , OrganizationProfileProps , WithInternalRouting } from '@clerk/types' ;
2
+ import type { OrganizationProfileModalProps , OrganizationProfileProps } from '@clerk/types' ;
3
3
import React from 'react' ;
4
- import type { OrganizationProfileCtx } from 'ui/types' ;
5
4
6
5
import { OrganizationProfileContext , withCoreUserGuard } from '../../contexts' ;
7
6
import { Flow , localizationKeys } from '../../customizables' ;
8
7
import { NavbarMenuButtonRow , ProfileCard , withCardStateProvider } from '../../elements' ;
9
8
import { Route , Switch } from '../../router' ;
9
+ import type { OrganizationProfileCtx } from '../../types' ;
10
10
import { OrganizationProfileNavbar } from './OrganizationProfileNavbar' ;
11
11
import { OrganizationProfileRoutes } from './OrganizationProfileRoutes' ;
12
12
13
- const _OrganizationProfile = ( ) => {
13
+ const _OrganizationProfile = ( _ : OrganizationProfileProps ) => {
14
14
const { organization } = useOrganization ( ) ;
15
15
16
16
if ( ! organization ) {
@@ -48,9 +48,6 @@ const AuthenticatedRoutes = withCoreUserGuard(() => {
48
48
49
49
export const OrganizationProfile = withCardStateProvider ( _OrganizationProfile ) ;
50
50
51
- const InternalOrganizationProfile : React . ComponentType < WithInternalRouting < OrganizationProfileProps > > =
52
- withCardStateProvider ( _OrganizationProfile ) ;
53
-
54
51
export const OrganizationProfileModal = ( props : OrganizationProfileModalProps ) : JSX . Element => {
55
52
const organizationProfileProps : OrganizationProfileCtx = {
56
53
...props ,
@@ -64,7 +61,7 @@ export const OrganizationProfileModal = (props: OrganizationProfileModalProps):
64
61
< OrganizationProfileContext . Provider value = { organizationProfileProps } >
65
62
{ /*TODO: Used by InvisibleRootBox, can we simplify? */ }
66
63
< div >
67
- < InternalOrganizationProfile { ...organizationProfileProps } />
64
+ < OrganizationProfile { ...organizationProfileProps } />
68
65
</ div >
69
66
</ OrganizationProfileContext . Provider >
70
67
</ Route >
0 commit comments