-
+
{children}
{inline && renderBranding && !compact ? (
@@ -537,7 +533,7 @@ const ContentPanel = React.forwardRef
(
*
* }>Account
*
- *
+ *
* …
*
*
diff --git a/packages/mosaic/src/features/organization-profile/organization-profile.view.tsx b/packages/mosaic/src/features/organization-profile/organization-profile.view.tsx
index 15d43add4f4..5dbf32f5a02 100644
--- a/packages/mosaic/src/features/organization-profile/organization-profile.view.tsx
+++ b/packages/mosaic/src/features/organization-profile/organization-profile.view.tsx
@@ -63,7 +63,8 @@ export const OrganizationProfileView = React.forwardRef entry.id === activePage) ? activePage : (firstPage?.id ?? 'general');
+ const resolvedEntry = entries.find(entry => entry.id === activePage) ?? firstPage;
+ const resolvedPage = resolvedEntry?.id ?? 'general';
return (
))}
-
+
{entries.map(entry => (
entry.id === activePage) ? activePage : (firstPage?.id ?? 'account');
+ const resolvedEntry = entries.find(entry => entry.id === activePage) ?? firstPage;
+ const resolvedPage = resolvedEntry?.id ?? 'account';
return (
))}
-
+
{entries.map(entry => (
-
+
Members
diff --git a/packages/swingset/src/stories/profile.component.mdx b/packages/swingset/src/stories/profile.component.mdx
index a6222c0800c..bac6a1c6376 100644
--- a/packages/swingset/src/stories/profile.component.mdx
+++ b/packages/swingset/src/stories/profile.component.mdx
@@ -45,7 +45,7 @@ import { Profile } from '@clerk/mosaic/components/profile';
Security
-
+
…
…
@@ -60,7 +60,7 @@ scrolls, the columns a gap apart, held to a reading width and centered. A
leading mark and trailing status. A `Badge` passed to `badge` is `neutral` unless it sets its own `color`. `Title` is a visually hidden heading: it names the navigation, the compact
sheet, and — inside a dialog — the dialog itself, the way `Card.Title` does.
-`Content` renders the page title above the pages: the selected `NavItem`'s label, as a heading that
+`Content` renders its `pageTitle` above the pages, the selected page's name, as a heading that
scrolls with the page and names it. A page's `Panel.Title` renders nothing there, and a ref on it
reaches the page title instead.
diff --git a/packages/swingset/src/stories/profile.component.stories.tsx b/packages/swingset/src/stories/profile.component.stories.tsx
index a5416ca54e7..878ddf14b8b 100644
--- a/packages/swingset/src/stories/profile.component.stories.tsx
+++ b/packages/swingset/src/stories/profile.component.stories.tsx
@@ -183,7 +183,7 @@ function Surface({
))}
-
+ item.id === page)?.label}>
{pages.map(item => (