Skip to content

Commit

Permalink
fix(clerk-js): Add descriptor for "Create Organization" logo box (#3596)
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts authored Jun 20, 2024
1 parent 31eb588 commit 1273b04
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/seven-feet-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@clerk/clerk-js": patch
"@clerk/types": patch
---

Add `organizationAvatarUploaderContainer` descriptor which is used e.g. for the logo upload box inside "Create Organization" flow
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { OrganizationResource } from '@clerk/types';

import { Col, Text } from '../../customizables';
import { Col, descriptors, Text } from '../../customizables';
import type { AvatarUploaderProps } from '../../elements';
import { AvatarUploader, OrganizationAvatar } from '../../elements';
import { localizationKeys } from '../../localization';
Expand All @@ -11,7 +11,7 @@ export const OrganizationProfileAvatarUploader = (
const { organization, ...rest } = props;

return (
<Col>
<Col elementDescriptor={descriptors.organizationAvatarUploaderContainer}>
<Text
variant='subtitle'
sx={t => ({
Expand Down
2 changes: 2 additions & 0 deletions packages/clerk-js/src/ui/customizables/elementDescriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ export const APPEARANCE_KEYS = containsAllElementsConfigKeys([
'organizationPreviewMainIdentifier',
'organizationPreviewSecondaryIdentifier',

'organizationAvatarUploaderContainer',

'membersPageInviteButton',

'identityPreview',
Expand Down
2 changes: 2 additions & 0 deletions packages/types/src/appearance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ export type ElementsConfig = {
organizationPreviewMainIdentifier: WithOptions<OrganizationPreviewId>;
organizationPreviewSecondaryIdentifier: WithOptions<OrganizationPreviewId>;

organizationAvatarUploaderContainer: WithOptions;

membersPageInviteButton: WithOptions;

identityPreview: WithOptions;
Expand Down

0 comments on commit 1273b04

Please sign in to comment.