From fc5b408576ad124ef7c89c362bdcb1e96015fe85 Mon Sep 17 00:00:00 2001 From: Kacper Wojciechowski <39823706+jog1t@users.noreply.github.com> Date: Tue, 3 Sep 2024 21:31:39 +0200 Subject: [PATCH] ui minor changes --- apps/hub/src/app.tsx | 1 + .../src/components/featured-modules-grid.tsx | 2 +- apps/hub/src/components/module-card.tsx | 29 ++++++--- .../game/helpers/try-create-backend.ts | 6 +- .../$gameId_/environments/$namespaceId.tsx | 1 - .../environments/$namespaceId/index.tsx | 5 +- .../$namespaceId/modules.lazy.tsx | 63 +++++++++++-------- 7 files changed, 68 insertions(+), 39 deletions(-) diff --git a/apps/hub/src/app.tsx b/apps/hub/src/app.tsx index 8d41ed3a..dfcd9709 100644 --- a/apps/hub/src/app.tsx +++ b/apps/hub/src/app.tsx @@ -34,6 +34,7 @@ export const router = createRouter({ }, // Since we're using React Query, we don't want loader calls to ever be stale // This will ensure that the loader is always called when the route is preloaded or visited + defaultPreload: "intent", defaultPreloadStaleTime: 0, defaultOnCatch: (error) => { Sentry.captureException(error); diff --git a/apps/hub/src/components/featured-modules-grid.tsx b/apps/hub/src/components/featured-modules-grid.tsx index 1503eada..7f444c9e 100644 --- a/apps/hub/src/components/featured-modules-grid.tsx +++ b/apps/hub/src/components/featured-modules-grid.tsx @@ -34,7 +34,7 @@ export function FeaturesModulesGrid({ footer }: FeaturesModulesGridProps) { ))} - {footer} + {footer ?
{footer}
: null} ); } diff --git a/apps/hub/src/components/module-card.tsx b/apps/hub/src/components/module-card.tsx index 3f25bb71..a6fb5f59 100644 --- a/apps/hub/src/components/module-card.tsx +++ b/apps/hub/src/components/module-card.tsx @@ -4,19 +4,21 @@ import { library, } from "@fortawesome/fontawesome-svg-core"; import { fab } from "@fortawesome/free-brands-svg-icons"; -import { fas } from "@fortawesome/pro-solid-svg-icons"; +import { faExternalLink, fas } from "@fortawesome/pro-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Card, CardDescription, CardHeader, CardTitle, + Link, Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, + Text, } from "@rivet-gg/components"; import { motion } from "framer-motion"; @@ -82,13 +84,24 @@ export function ModuleCard({ - {name} in OpenGB Docs - -