-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(clerk-js): Update ui of OrganizationSwitcher to better match Org…
…anizationList (#1675) * chore(types,localizations): Remove unused localization keys * feat(clerk-js): Update ui of OrganizationSwitcher to better match OrganizationList As part of this commit, was also some refactoring of duplicate code between the list of suggestions and invitations * chore(clerk-js): Add changeset * test(clerk-js): Test helpers for populateCache of swr mutate * chore(clerk-js): Remove unnecessary optional channing
- Loading branch information
1 parent
5be0c62
commit 1426e5e
Showing
12 changed files
with
355 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@clerk/localizations': patch | ||
'@clerk/clerk-js': patch | ||
'@clerk/types': patch | ||
--- | ||
|
||
Organization Switcher now diplays organization invitations and suggestions in a more compact form. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { forwardRef } from 'react'; | ||
|
||
import { Box, Spinner } from '../customizables'; | ||
|
||
export const InfiniteListSpinner = forwardRef<HTMLDivElement>((_, ref) => { | ||
return ( | ||
<Box | ||
ref={ref} | ||
sx={t => ({ | ||
width: '100%', | ||
height: t.space.$12, | ||
position: 'relative', | ||
})} | ||
> | ||
<Box | ||
sx={{ | ||
margin: 'auto', | ||
position: 'absolute', | ||
left: '50%', | ||
top: '50%', | ||
transform: 'translateY(-50%) translateX(-50%)', | ||
}} | ||
> | ||
<Spinner | ||
size='md' | ||
colorScheme='primary' | ||
/> | ||
</Box> | ||
</Box> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
166 changes: 0 additions & 166 deletions
166
packages/clerk-js/src/ui/components/OrganizationSwitcher/UserInvitationList.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.