Skip to content

Commit d6cbd73

Browse files
fix(react, nextjs): satisfy the key-ordering lint rules
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 3cf0f5d commit d6cbd73

3 files changed

Lines changed: 11 additions & 13 deletions

File tree

‎packages/nextjs/src/client/components/presentation/UserDropdown/UserDropdown.tsx‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,17 @@ export interface UserDropdownRenderProps {
4646
* Extends BaseUserDropdownProps but excludes user, onManageProfile, and onSignOut since they're handled internally
4747
*/
4848
export type UserDropdownProps = Omit<BaseUserDropdownProps, 'user' | 'onManageProfile'> & {
49+
/**
50+
* Render prop function that receives user state and actions.
51+
* When provided, this completely replaces the default dropdown rendering.
52+
*/
53+
children?: (props: UserDropdownRenderProps) => ReactNode;
4954
/**
5055
* Whether the profile shown by the "Manage profile" item can be edited. Forwarded to
5156
* `<UserProfile />`, so `'auto'` renders a read-only profile for accounts whose attributes
5257
* are owned by an identity provider.
5358
*/
5459
editable?: UserProfileProps['editable'];
55-
56-
/**
57-
* Render prop function that receives user state and actions.
58-
* When provided, this completely replaces the default dropdown rendering.
59-
*/
60-
children?: (props: UserDropdownRenderProps) => ReactNode;
6160
/**
6261
* Custom render function for the dropdown content.
6362
* When provided, this replaces just the dropdown content while keeping the trigger.

‎packages/react/src/components/presentation/UserDropdown/UserDropdown.tsx‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,17 @@ export interface UserDropdownRenderProps {
4747
* Extends BaseUserDropdownProps but excludes user, onManageProfile, and onSignOut since they're handled internally
4848
*/
4949
export type UserDropdownProps = Omit<BaseUserDropdownProps, 'user' | 'onManageProfile'> & {
50+
/**
51+
* Render prop function that receives user state and actions.
52+
* When provided, this completely replaces the default dropdown rendering.
53+
*/
54+
children?: (props: UserDropdownRenderProps) => ReactNode;
5055
/**
5156
* Whether the profile shown by the "Manage profile" item can be edited. Forwarded to
5257
* `<UserProfile />`, so `'auto'` renders a read-only profile for accounts whose attributes
5358
* are owned by an identity provider.
5459
*/
5560
editable?: UserProfileProps['editable'];
56-
57-
/**
58-
* Render prop function that receives user state and actions.
59-
* When provided, this completely replaces the default dropdown rendering.
60-
*/
61-
children?: (props: UserDropdownRenderProps) => ReactNode;
6261
/**
6362
* Custom render function for the dropdown content.
6463
* When provided, this replaces just the dropdown content while keeping the trigger.

‎packages/react/src/components/presentation/UserProfile/BaseUserProfile.styles.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ const useStyles = (theme: Theme, colorScheme: string): Record<string, string> =>
231231
header,
232232
info,
233233
infoContainer,
234-
loading,
235234
label,
236235
lastField,
236+
loading,
237237
name,
238238
objectKey,
239239
objectValue,

0 commit comments

Comments
 (0)