mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 20:30:54 -05:00
Temp placeholder in UserItem when no avatar
This commit is contained in:
parent
380644794b
commit
eb19399984
|
|
@ -7,7 +7,7 @@ export function UserItem() {
|
|||
const user = useUser();
|
||||
const location = useLocation();
|
||||
|
||||
if (user)
|
||||
if (user && user.discordAvatar)
|
||||
return (
|
||||
<img
|
||||
className="layout__avatar"
|
||||
|
|
@ -15,6 +15,12 @@ export function UserItem() {
|
|||
/>
|
||||
);
|
||||
|
||||
// TODO: just show text... my profile?
|
||||
// TODO: also show this if discordAvatar is stale and 404's
|
||||
if (user) {
|
||||
return <div className="layout__header__logo-container" />;
|
||||
}
|
||||
|
||||
return (
|
||||
<form action={getLogInUrl(location)} method="post" data-cy="log-in-form">
|
||||
<button
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user