From 76980fbc0c25cdb3897130bb7eccd193fbb7f46e Mon Sep 17 00:00:00 2001 From: Rishabh Date: Wed, 16 Aug 2023 23:51:17 +0530 Subject: [PATCH] feat: add deault route support in setting component --- .../react/components/organization/profile.tsx | 158 +++++++++--------- 1 file changed, 79 insertions(+), 79 deletions(-) diff --git a/sdks/js/packages/core/react/components/organization/profile.tsx b/sdks/js/packages/core/react/components/organization/profile.tsx index 905d29561..9d20bf57e 100644 --- a/sdks/js/packages/core/react/components/organization/profile.tsx +++ b/sdks/js/packages/core/react/components/organization/profile.tsx @@ -28,10 +28,12 @@ import { TeamPage } from './teams/team'; import { UserSetting } from './user'; interface OrganizationProfileProps { organizationId: string; + defaultRoute?: string; } export const OrganizationProfile = ({ - organizationId + organizationId, + defaultRoute = '/' }: OrganizationProfileProps) => { const [organization, setOrganization] = useState(); const [users, setUsers] = useState([]); @@ -57,97 +59,95 @@ export const OrganizationProfile = ({ return ( // @ts-ignore - - - - - - - - + + + + + + + + } + > } - > - } - /> - - } /> + path="delete" + element={} + /> + + } /> + } + > } - > - - } - /> - } - /> - + path="modal" + element={ + + } + /> + } + /> + + } + > } - > - } - /> - + path="modal" + element={} + /> + + } + > } - > - } - /> - + path="modal" + element={} + /> + + } + > } - > - } - /> - + path="delete" + element={} + /> + + } + > } - > - } - /> - + path="modal" + element={} + /> + + } + > } - > - } - /> - + path="delete" + element={} + /> + - } /> - } /> - - + } /> + } /> + - - - + + + ); };