Skip to content

Commit 4439b3a

Browse files
committed
docs(mosaic): address PR #10752 review feedback
1 parent b6eb74a commit 4439b3a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎.changeset/mosaic-switcher.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
| `<UserButton combined={false} />` | `<UserButton />` or `<Switcher mode='user' />` |
1111
| `<UserButton triggerVariant='condensed' />` | `<Switcher triggerVariant='condensed' />` |
1212
| Organization props on `UserButton` (`hidePersonal`, `afterSelectOrganizationUrl`, `createOrganizationUrl`, ...) | The same props on `Switcher` |
13-
| `UserButtonMenuProps` | `CombinedSwitcherProps` |
13+
| `UserButtonProps` (combined menu) | `CombinedSwitcherProps` |
1414

1515
Find usages with `git grep -n "UserButton"`.

‎packages/mosaic/docs/testing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ it('makes the selected organization active and closes', async () => {
6464
client: fapiClient([fapiSession({ id: 'sess_1', user: alice, last_active_organization_id: 'org_1' })]),
6565
memberships: [fapiMembership(acme), fapiMembership(other)],
6666
});
67-
await renderWithClerk(<UserButton />);
67+
await renderWithClerk(<Switcher />);
6868
const user = userEvent.setup();
6969

7070
await user.click(screen.getByRole('button', { name: /Open account menu/ }));

‎packages/mosaic/src/features/organization-switcher/__tests__/organization-switcher.feature.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
} from '../../../__tests__/feature/fapi';
1919
import { renderWithClerk } from '../../../__tests__/feature/render';
2020
import type { MosaicProfile } from '../../profile-pages/use-mosaic-profile';
21-
import type { OrganizationSwitcherProps } from '../organization-switcher';
21+
import type { OrganizationSwitcherProps } from '../../switcher/switcher';
2222
import { OrganizationSwitcher } from '../organization-switcher';
2323

2424
beforeAll(async () => {

0 commit comments

Comments
 (0)