feat(join): hide join button if already on a room
This commit is contained in:
committed by
Sparsh Goenka
parent
db4a58c3e6
commit
e285fa4801
@@ -21,6 +21,7 @@
|
|||||||
>
|
>
|
||||||
<div class="space-y-4 max-w-[70%]">
|
<div class="space-y-4 max-w-[70%]">
|
||||||
{#if roomCode}
|
{#if roomCode}
|
||||||
|
<div class="text-center text-lg text-primary-content">Share this code with your opponent to play</div>
|
||||||
<div class="space-x-2 flex flex-row justify-center items-center">
|
<div class="space-x-2 flex flex-row justify-center items-center">
|
||||||
<div
|
<div
|
||||||
class="text-3xl font-bold tracking-widest text-secondary-content font-mono bg-secondary py-3 rounded-full px-12"
|
class="text-3xl font-bold tracking-widest text-secondary-content font-mono bg-secondary py-3 rounded-full px-12"
|
||||||
@@ -40,6 +41,7 @@
|
|||||||
Create Room
|
Create Room
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
|
{#if !roomCode}
|
||||||
<div class="text-center text-lg text-primary-content">OR</div>
|
<div class="text-center text-lg text-primary-content">OR</div>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<input
|
<input
|
||||||
@@ -56,5 +58,6 @@
|
|||||||
Join Room
|
Join Room
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user