admin panel link

This commit is contained in:
MeowcaTheoRange 2024-04-24 16:48:30 -05:00
parent 26f2a10d0a
commit 83552baac3

View file

@ -62,6 +62,7 @@ export default async function Home({
<ConditionalNull condition={existingUser != null}> <ConditionalNull condition={existingUser != null}>
<p>Logged in as <a href={`/jams/user/${existingUser?.id}`}>{existingUser?.username}@{existingUser?.instance}</a> (<a href="/jams/oauth/logout">Logout</a>)</p> <p>Logged in as <a href={`/jams/user/${existingUser?.id}`}>{existingUser?.username}@{existingUser?.instance}</a> (<a href="/jams/oauth/logout">Logout</a>)</p>
<ConditionalNull condition={existingUser?.admin == true}><p><a href="/jams/new/jam">Create Jam</a></p></ConditionalNull> <ConditionalNull condition={existingUser?.admin == true}><p><a href="/jams/new/jam">Create Jam</a></p></ConditionalNull>
<ConditionalNull condition={existingUser?.admin == true}><p><a href="/jams/admin">Admin panel</a></p></ConditionalNull>
</ConditionalNull> </ConditionalNull>
<h1>Jams</h1> <h1>Jams</h1>
{jams.map(async (jam:JSONJamTable) => { {jams.map(async (jam:JSONJamTable) => {