Remove deprecated TeamSwitcher, use SelectedTeamSwitcher instead

This commit is contained in:
Stan Wohlwend 2024-07-24 12:04:53 -07:00
parent 1899a25efe
commit 56ab3bc022
2 changed files with 2 additions and 6 deletions

View File

@ -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.

View File

@ -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";