stack/examples/docs-examples/src/app
Zai Shi d6f3be5543
swithcer (#715)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Enhance `SelectedTeamSwitcher` to support nullable teams and add
'personal' team icon in `TeamIcon`, with updated translations.
> 
>   - **Behavior**:
> - `SelectedTeamSwitcher` in `selected-team-switcher.tsx` now supports
nullable teams with `allowNull` prop and `nullLabel` for display.
> - `onChange` callback added to `SelectedTeamSwitcher` to handle team
changes.
> - `TeamIcon` in `team-icon.tsx` now supports a 'personal' team type,
displaying a default icon.
>   - **Translations**:
> - Added translation key for "Personal team" in
`quetzal-translations.ts`.
>   - **Misc**:
> - Updated `SelectedTeamSwitcherProps` type to handle nullable teams
and added `onChange` callback.
> - Minor refactoring in `selected-team-switcher.tsx` for better
handling of team selection logic.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for ddb61e962b. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-07-02 19:23:53 +02:00
..
components object-curly-spacing rule 2024-12-23 19:37:05 -08:00
drive Require newline at the end of each file 2024-10-13 13:06:38 -07:00
handler/[...stack] Next.js 15 support (#315) 2024-11-08 03:12:31 +01:00
signin OTP (#263) 2024-09-24 20:02:06 +02:00
signup OTP (#263) 2024-09-24 20:02:06 +02:00
team swithcer (#715) 2025-07-02 19:23:53 +02:00
favicon.ico Fixed team selection (#124) 2024-07-02 02:39:50 +02:00
global.css Support create-next-app@15 with the setup wizard (#340) 2024-11-13 13:58:42 +01:00
layout.tsx Support create-next-app@15 with the setup wizard (#340) 2024-11-13 13:58:42 +01:00
loading.tsx Added loading skeleton to components (#328) 2024-11-02 01:44:52 +01:00
page-client.tsx React SDK (#462) 2025-02-27 01:55:45 +01:00
page.tsx Fixed team selection (#124) 2024-07-02 02:39:50 +02:00