Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/organization-switcher-hide-personal-doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/shared': patch
---

Correct the `hidePersonal` documentation on `OrganizationSwitcherProps` and `OrganizationListProps`: setting it to `true` hides the personal account entry, and it defaults to `false`.
8 changes: 4 additions & 4 deletions packages/shared/src/types/clerk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2340,10 +2340,10 @@ export type OrganizationSwitcherProps = CreateOrganizationMode &
/**
* By default, users can switch between Organization and their personal account.
* This option controls whether OrganizationSwitcher will include the user's personal account
* in the Organization list. Setting this to `false` will hide the personal account entry,
* in the Organization list. Setting this to `true` will hide the personal account entry,
* and users will only be able to switch between Organizations.
*
* @default true
* @default false
Comment thread
coderabbitai[bot] marked this conversation as resolved.
*/
hidePersonal?: boolean;
/**
Expand Down Expand Up @@ -2427,10 +2427,10 @@ export type OrganizationListProps = {
/**
* By default, users can switch between Organization and their personal account.
* This option controls whether OrganizationList will include the user's personal account
* in the Organization list. Setting this to `false` will hide the personal account entry,
* in the Organization list. Setting this to `true` will hide the personal account entry,
* and users will only be able to switch between Organizations.
*
* @default true
* @default false
*/
hidePersonal?: boolean;
/**
Expand Down
Loading