This commit is contained in:
Mike Cao 2020-09-09 16:43:37 -07:00
parent 6bbe7800c2
commit ff9d4f8585

View File

@ -22,8 +22,9 @@ export default function Header() {
</div> </div>
</div> </div>
<div className="col-12 col-md-9"> <div className="col-12 col-md-9">
{user ? (
<div className={styles.nav}> <div className={styles.nav}>
{user ? (
<>
<Link href="/dashboard"> <Link href="/dashboard">
<FormattedMessage id="header.nav.dashboard" defaultMessage="Dashboard" /> <FormattedMessage id="header.nav.dashboard" defaultMessage="Dashboard" />
</Link> </Link>
@ -32,12 +33,13 @@ export default function Header() {
</Link> </Link>
<LanguageButton menuAlign="right" /> <LanguageButton menuAlign="right" />
<UserButton /> <UserButton />
</div> </>
) : ( ) : (
<LanguageButton menuAlign="right" /> <LanguageButton menuAlign="right" />
)} )}
</div> </div>
</div> </div>
</div>
</header> </header>
); );
} }