|
|
|
@ -12,19 +12,23 @@ export const Rooms = () => {
|
|
|
|
|
return <div>Loading...</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return rooms.map((room, i) => (
|
|
|
|
|
<div class="card tint-green stack-v center">
|
|
|
|
|
<div class="fill-w stack-h center" key={i}>
|
|
|
|
|
<code>{room.id}</code>
|
|
|
|
|
<div class="fill"></div>
|
|
|
|
|
<button
|
|
|
|
|
onClick={() => {
|
|
|
|
|
location.href = `/${room.id}`
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Classifica
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
return (
|
|
|
|
|
<div class="stack-v">
|
|
|
|
|
{rooms.map((room, i) => (
|
|
|
|
|
<div class="card tint-green stack-v center">
|
|
|
|
|
<div class="fill-w stack-h center" key={i}>
|
|
|
|
|
<code>{room.id}</code>
|
|
|
|
|
<div class="fill"></div>
|
|
|
|
|
<button
|
|
|
|
|
onClick={() => {
|
|
|
|
|
location.href = `/${room.id}`
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Classifica
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
))
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|