Hide user button for cloud.

This commit is contained in:
Mike Cao 2022-11-09 22:12:40 -08:00
parent 6ee27a7e53
commit 4f098a34c1
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ export default function Header() {
<div className={styles.buttons}>
<ThemeButton />
<LanguageButton menuAlign="right" />
{user && <UserButton />}
{user && !adminDisabled && <UserButton />}
</div>
</header>
</>

View File

@ -13,7 +13,7 @@ export default function SingleSignOnPage() {
router.push(url);
}
}, [url, token]);
}, [router, url, token]);
return null;
}