-
Notifications
You must be signed in to change notification settings - Fork 453
feat(clerk-js): Accept skipInvitationScreen as a prop from OrganizationSwitcher
#2713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| '@clerk/clerk-js': minor | ||
| '@clerk/types': minor | ||
| --- | ||
|
|
||
| Accept `skipInvitationScreen` as a prop from OrganizationSwitcher. | ||
|
|
||
| `skipInvitationScreen` hides the screen for sending invitations after an organization is created. | ||
| By default, Clerk will automatically hide the screen if the number of max allowed members is equal to 1 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -853,7 +853,6 @@ export type OrganizationSwitcherProps = CreateOrganizationMode & | |
| afterSelectOrganizationUrl?: | ||
| | ((organization: OrganizationResource) => string) | ||
| | LooseExtractedParams<PrimitiveKeys<OrganizationResource>>; | ||
|
|
||
| /** | ||
| * Full URL or path to navigate after a successful selection of personal workspace. | ||
| * Accepts a function that returns URL or path | ||
|
|
@@ -865,13 +864,18 @@ export type OrganizationSwitcherProps = CreateOrganizationMode & | |
| * @default undefined | ||
| */ | ||
| afterLeaveOrganizationUrl?: string; | ||
| /** | ||
| * Hides the screen for sending invitations after an organization is created. | ||
| * @default undefined When left undefined Clerk will automatically hide the screen if | ||
| * the number of max allowed members is equal to 1 | ||
| */ | ||
| skipInvitationScreen?: boolean; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why don't we nest this under createOrganizationProps?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As i mention in the description, I'd like to backport this to v4 as is, in order to follow the same pattern. |
||
| /** | ||
| * Customisation options to fully match the Clerk components to your own brand. | ||
| * These options serve as overrides and will be merged with the global `appearance` | ||
| * prop of ClerkProvided (if one is provided) | ||
| */ | ||
| appearance?: OrganizationSwitcherTheme; | ||
|
|
||
| /* | ||
| * Specify options for the underlying <OrganizationProfile /> component. | ||
| * e.g. <UserButton userProfileProps={{appearance: {...}}} /> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.