diff --git a/packages/clerk-js/src/ui/components/OrganizationProfile/OrganizationProfileRoutes.tsx b/packages/clerk-js/src/ui/components/OrganizationProfile/OrganizationProfileRoutes.tsx index 9c4461392c..ed0c9c4cec 100644 --- a/packages/clerk-js/src/ui/components/OrganizationProfile/OrganizationProfileRoutes.tsx +++ b/packages/clerk-js/src/ui/components/OrganizationProfile/OrganizationProfileRoutes.tsx @@ -1,6 +1,6 @@ +import { Gate } from '../../common'; import { CustomPageContentContainer } from '../../common/CustomPageContentContainer'; import { ORGANIZATION_PROFILE_NAVBAR_ROUTE_ID } from '../../constants'; -import { Gate } from '../../common/Gate'; import { useOrganizationProfileContext } from '../../contexts'; import { ProfileCardContent } from '../../elements'; import { Route, Switch } from '../../router'; @@ -48,11 +48,11 @@ export const OrganizationProfileRoutes = (props: PropsOfComponent - - + permission={'org:sys_profile:manage'} + redirectTo='../' + > + + - - - + permission={'org:sys_domains:manage'} + redirectTo='../../' + > + + + - - - + permission={'org:sys_domains:delete'} + redirectTo='../../' + > + + + - - - + permission={'org:sys_domains:manage'} + redirectTo='../../' + > + + + - - + permission={'org:sys_domains:manage'} + redirectTo='../' + > + + @@ -104,12 +104,12 @@ export const OrganizationProfileRoutes = (props: PropsOfComponent - - - + permission={'org:sys_profile:delete'} + redirectTo='../' + > + + + @@ -122,11 +122,11 @@ export const OrganizationProfileRoutes = (props: PropsOfComponent - - + permission={'org:sys_memberships:manage'} + redirectTo='../' + > + +