You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom Pages for <UserProfile /> and <OrganizationProfile /> components (#1822)
* feat(clerk-js,clerk-react,types): Introduce Custom Pages in UserProfile
* fix(clerk-js): Fix top-level `localizationKeys` evaluation
* fix(clerk-react): Fix issue with useCustomPages when making changes on the custom pages in dev
* chore(clerk-js): Update bundlewatch.config.json
* fix(clerk-react): Fix issue when changing the custom pages length dynamically
* feat(clerk-react,clerk-js): Add support for custom pages in OrganizationProfile
* fix(clerk-react,clerk-js): Resolve comments for custom pages
* test(clerk-js): Add tests for OrganizationProfile custom pages
* fix(clerk-js): Add navbar menu for mobile on custom pages
* fix(clerk-react): Omit `customPages` property from React package components
* refactor(clerk-js): Refactor the UserProfileRoutes and OrganizationProfileRoutes to be more readable
* refactor(clerk-react,types): Apply minor refactors suggested by PR comments
* refactor(clerk-react,types): Resolve PR comments
* chore(clerk-js): Lint OrganizationProfileRoutes
* fix(clerk-js): Fix custom icons props
* fix(nextjs): Fix typings issue
Introduce customization in `UserProfile` and `OrganizationProfile`
8
+
9
+
The `<UserProfile />` component now allows the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the `<UserProfile.Page>` component, and external links can be added using the `<UserProfile.Link>` component. The default routes, such as `Account` and `Security`, can be reordered.
Custom pages and links should be provided as children using the `<UserButton.UserProfilePage>` and `<UserButton.UserProfileLink>` components when using the `UserButton` component.
24
+
25
+
The `<OrganizationProfile />` component now supports the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the `<OrganizationProfile.Page>` component, and external links can be added using the `<OrganizationProfile.Link>` component. The default routes, such as `Members` and `Settings`, can be reordered.
Custom pages and links should be provided as children using the `<OrganizationSwitcher.OrganizationProfilePage>` and `<OrganizationSwitcher.OrganizationProfileLink>` components when using the `OrganizationSwitcher` component.
0 commit comments