Skip to content

Commit 22e6748

Browse files
committed
fix(repo): align AccountButton story with renamed view props
The swingset AccountButton story imported the removed AccountButtonProps type and passed status='ready', both of which broke after the view API changed (AccountButtonViewProps; status now lives on the controller, not the presentational view). Update the story to match.
1 parent f5ad19b commit 22e6748

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

packages/swingset/src/stories/account-button.stories.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @jsxImportSource @emotion/react */
2-
import { type AccountButtonProps, AccountButtonView } from '@clerk/ui/mosaic/account/account-button.view';
2+
import { AccountButtonView, type AccountButtonViewProps } from '@clerk/ui/mosaic/account/account-button.view';
33

44
import type { StoryMeta } from '@/lib/types';
55

@@ -29,15 +29,14 @@ const handlers = {
2929
onCreateOrganization: () => {},
3030
onAddAccount: () => {},
3131
onUpgrade: () => {},
32-
} satisfies Partial<AccountButtonProps>;
32+
} satisfies Partial<AccountButtonViewProps>;
3333

3434
const preston = { sessionId: 'sess_1', userId: 'user_1', name: 'Preston Booth', email: 'preston@clerk.dev' };
3535

3636
export function Default(_args: Record<string, unknown>) {
3737
return (
3838
<AccountButtonView
3939
{...handlers}
40-
status='ready'
4140
activeAccount={preston}
4241
activeOrganizationId='org_clerk_app'
4342
hasOrganizations
@@ -65,7 +64,6 @@ export function Personal(_args: Record<string, unknown>) {
6564
return (
6665
<AccountButtonView
6766
{...handlers}
68-
status='ready'
6967
activeAccount={{
7068
sessionId: 'sess_cam',
7169
userId: 'user_cam',
@@ -88,7 +86,6 @@ export function MultipleAccounts(_args: Record<string, unknown>) {
8886
return (
8987
<AccountButtonView
9088
{...handlers}
91-
status='ready'
9289
activeAccount={preston}
9390
activeOrganizationId='org_clerk_app'
9491
hasOrganizations

0 commit comments

Comments
 (0)