Skip to content

Commit 1273b04

Browse files
authored
fix(clerk-js): Add descriptor for "Create Organization" logo box (#3596)
1 parent 31eb588 commit 1273b04

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.changeset/seven-feet-beam.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@clerk/clerk-js": patch
3+
"@clerk/types": patch
4+
---
5+
6+
Add `organizationAvatarUploaderContainer` descriptor which is used e.g. for the logo upload box inside "Create Organization" flow

packages/clerk-js/src/ui/components/OrganizationProfile/OrganizationProfileAvatarUploader.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { OrganizationResource } from '@clerk/types';
22

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

1313
return (
14-
<Col>
14+
<Col elementDescriptor={descriptors.organizationAvatarUploaderContainer}>
1515
<Text
1616
variant='subtitle'
1717
sx={t => ({

packages/clerk-js/src/ui/customizables/elementDescriptors.ts

+2
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ export const APPEARANCE_KEYS = containsAllElementsConfigKeys([
166166
'organizationPreviewMainIdentifier',
167167
'organizationPreviewSecondaryIdentifier',
168168

169+
'organizationAvatarUploaderContainer',
170+
169171
'membersPageInviteButton',
170172

171173
'identityPreview',

packages/types/src/appearance.ts

+2
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ export type ElementsConfig = {
290290
organizationPreviewMainIdentifier: WithOptions<OrganizationPreviewId>;
291291
organizationPreviewSecondaryIdentifier: WithOptions<OrganizationPreviewId>;
292292

293+
organizationAvatarUploaderContainer: WithOptions;
294+
293295
membersPageInviteButton: WithOptions;
294296

295297
identityPreview: WithOptions;

0 commit comments

Comments
 (0)