Skip to content

Commit

Permalink
Update organization-profile.mdx
Browse files Browse the repository at this point in the history
Docs did not reflect proper props:
type OrganizationProfilePageProps = PageProps<'general' | 'members'>;
  • Loading branch information
jasonaw98 authored Sep 22, 2024
1 parent 923f4d6 commit e15d0f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/customization/organization-profile.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ The following example adds a link to the homepage in the navigation sidebar of t

## Reordering default routes

If you want to reorder the default routes, `Members` and `Settings`, set the `label` prop to `'members'` or `'settings'`. This will target the existing default page and allow you to rearrange it.
If you want to reorder the default routes, `Members` and `General`, set the `label` prop to `'members'` or `'general'`. This will target the existing default page and allow you to rearrange it.

Note that when reordering default routes, the first item in the navigation sidebar cannot be a `<OrganizationSwitcher.OrganizationProfileLink />` or `<OrganizationProfile.Link />` component.

Expand Down Expand Up @@ -402,7 +402,7 @@ Note that when reordering default routes, the first item in the navigation sideb
labelIcon={<DotIcon />}
/>
<OrganizationSwitcher.OrganizationProfilePage label="members" />
<OrganizationSwitcher.OrganizationProfilePage label="settings" />
<OrganizationSwitcher.OrganizationProfilePage label="general" />
</OrganizationSwitcher>
</header>
)
Expand Down Expand Up @@ -459,4 +459,4 @@ With the above example, the `<OrganizationProfile />` navigation sidebar will be
1. Custom Page
1. Homepage
1. Members
1. Settings
1. General

0 comments on commit e15d0f9

Please sign in to comment.