Updated teams button props.

This commit is contained in:
Mike Cao 2024-02-16 19:26:46 -08:00
parent b7083421e5
commit 01fe95a891
4 changed files with 65 additions and 80 deletions

View file

@ -14,7 +14,7 @@ import styles from './NavBar.module.css';
export function NavBar() {
const { formatMessage, labels } = useMessages();
const { pathname, router } = useNavigation();
const { teamId, renderTeamUrl } = useTeamUrl();
const { renderTeamUrl } = useTeamUrl();
const cloudMode = !!process.env.cloudMode;
@ -88,7 +88,7 @@ export function NavBar() {
})}
</div>
<div className={styles.actions}>
<TeamsButton teamId={teamId} onChange={handleTeamChange} />
<TeamsButton onChange={handleTeamChange} />
<ThemeButton />
<LanguageButton />
<ProfileButton />