Added matches scrollable to home page #96
@@ -357,7 +357,11 @@ const joinGame = async (game) => {
|
||||
</div>
|
||||
<div>
|
||||
<div class="font-medium text-sm">Match ID: {{ match.id }}</div>
|
||||
<div class="text-[10px] text-muted-foreground">Type: {{ match.type }}
|
||||
<div class="text-[10px] text-muted-foreground">{{ new
|
||||
Date(game.began_at).toLocaleDateString() }} • {{ new
|
||||
Date(game.began_at).toLocaleTimeString([], {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit' }) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -396,7 +400,11 @@ const joinGame = async (game) => {
|
||||
<div>
|
||||
<div class="font-medium text-sm">Host: {{ game.player1?.nickname ||
|
||||
'Anonymous' }}</div>
|
||||
<div class="text-[10px] text-muted-foreground">{{ game.began_at }}</div>
|
||||
<div class="text-[10px] text-muted-foreground">{{ new
|
||||
Date(game.began_at).toLocaleDateString() }} • {{ new
|
||||
Date(game.began_at).toLocaleTimeString([], {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit' }) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user