Add anchor to /me on profile picture
This commit is contained in:
parent
5d38bae59c
commit
0e94b0fc2c
@ -121,7 +121,9 @@ export default function (props: {
|
|||||||
<div className="nav-links">
|
<div className="nav-links">
|
||||||
{data.hide ? null : data.id ? (
|
{data.hide ? null : data.id ? (
|
||||||
<HStack spacing="3">
|
<HStack spacing="3">
|
||||||
<Avatar src={getAvatarUrl(data)} />
|
<a href="/me">
|
||||||
|
<Avatar src={getAvatarUrl(data)} />
|
||||||
|
</a>
|
||||||
<Text>{data.username}</Text>
|
<Text>{data.username}</Text>
|
||||||
<Button
|
<Button
|
||||||
onClick={async () => await destroySession()}
|
onClick={async () => await destroySession()}
|
||||||
@ -189,7 +191,12 @@ export default function (props: {
|
|||||||
<Link display={data.id ? "none" : ""} href="/api/auth/oauth">
|
<Link display={data.id ? "none" : ""} href="/api/auth/oauth">
|
||||||
Log In
|
Log In
|
||||||
</Link>
|
</Link>
|
||||||
<Avatar display={data.id ? "" : "none"} src={getAvatarUrl(data)} />
|
<a href="/me">
|
||||||
|
<Avatar
|
||||||
|
display={data.id ? "" : "none"}
|
||||||
|
src={getAvatarUrl(data)}
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
<Text align="center" style={{ overflowWrap: "anywhere" }}>
|
<Text align="center" style={{ overflowWrap: "anywhere" }}>
|
||||||
{data.id ? data.username : ""}
|
{data.id ? data.username : ""}
|
||||||
</Text>
|
</Text>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user