From ba82a9d5af38693f66ae10b40ecc6538ab846458 Mon Sep 17 00:00:00 2001 From: Kacper Wojciechowski <39823706+jog1t@users.noreply.github.com> Date: Mon, 23 Sep 2024 22:10:54 +0200 Subject: [PATCH] refactor: change empty servers text --- .../$namespaceId/servers/index.tsx | 85 ++++++++++--------- 1 file changed, 46 insertions(+), 39 deletions(-) diff --git a/apps/hub/src/routes/_authenticated/_layout/games/$gameId_/environments/$namespaceId/servers/index.tsx b/apps/hub/src/routes/_authenticated/_layout/games/$gameId_/environments/$namespaceId/servers/index.tsx index 852419ed..73e7ff1e 100644 --- a/apps/hub/src/routes/_authenticated/_layout/games/$gameId_/environments/$namespaceId/servers/index.tsx +++ b/apps/hub/src/routes/_authenticated/_layout/games/$gameId_/environments/$namespaceId/servers/index.tsx @@ -4,10 +4,10 @@ import { Button, Card, CardContent, + CardDescription, CardHeader, CardTitle, Flex, - Text, WithTooltip, } from "@rivet-gg/components"; import { Icon, faPlus, faRefresh } from "@rivet-gg/icons"; @@ -24,49 +24,56 @@ function GameServersRoute() { return ( - - Servers - - refetch()} - > - - - } - /> - refetch()} - > - + + Servers + + refetch()} > - - - - } - /> - + + + } + /> + refetch()} + > + + + + + } + /> + + + + Servers are created & destroyed automatically as players connect & + disconnect. + {data.length === 0 ? (
- - Servers will be created automatically when players join. - + No servers created. + + Run your game client & connect to start a server. +
) : (