admin panel link
This commit is contained in:
parent
26f2a10d0a
commit
83552baac3
1 changed files with 1 additions and 0 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue