mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Remove deprecated TeamSwitcher, use SelectedTeamSwitcher instead
This commit is contained in:
parent
1899a25efe
commit
56ab3bc022
@ -44,8 +44,8 @@ export default function Page() {
|
||||
All of Stack's components are modular and built from smaller primitives. For example, the `<SignIn />` component is composed of the following:
|
||||
|
||||
- An `<OAuthButtonGroup />`, which itself is composed of multiple `<OAuthButton />` components
|
||||
- A `<MagicLinkSignInForm />`, which has a text field and calls `useStackApp().signInWithMagicLink()`
|
||||
- A `<CredentialSignInForm />`, which has two text fields and calls `useStackApp().signInWithCredential()`
|
||||
- A `<MagicLinkSignIn />`, which has a text field and calls `useStackApp().signInWithMagicLink()`
|
||||
- A `<CredentialSignIn />`, which has two text fields and calls `useStackApp().signInWithCredential()`
|
||||
|
||||
You can use these components individually to build a custom sign-in component.
|
||||
|
||||
|
||||
@ -21,8 +21,4 @@ export { OAuthButtonGroup } from "./components/oauth-button-group";
|
||||
|
||||
export {
|
||||
SelectedTeamSwitcher,
|
||||
/**
|
||||
* @deprecated This was renamed to `SelectedTeamSwitcher`.
|
||||
*/
|
||||
SelectedTeamSwitcher as TeamSwitcher,
|
||||
} from "./components/selected-team-switcher";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user