From caec232c9ed11391be2701670cadac17500bacd6 Mon Sep 17 00:00:00 2001 From: Lamarcke Date: Mon, 28 Oct 2024 19:46:10 -0300 Subject: [PATCH] - removes BETA badge - allows users to enter the importer system --- src/components/game/info/share/GameInfoSharePreview.tsx | 5 ++++- src/components/general/GameNodeLogo.tsx | 9 ++++++--- .../shell/GlobalShellHeader/GlobalShellHeader.tsx | 5 ++++- .../shell/GlobalShellNavbar/GlobalShellNavbar.tsx | 4 ++-- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/components/game/info/share/GameInfoSharePreview.tsx b/src/components/game/info/share/GameInfoSharePreview.tsx index fbcbb7c..efde155 100644 --- a/src/components/game/info/share/GameInfoSharePreview.tsx +++ b/src/components/game/info/share/GameInfoSharePreview.tsx @@ -79,7 +79,10 @@ const GameInfoSharePreview = ({ )} - + diff --git a/src/components/general/GameNodeLogo.tsx b/src/components/general/GameNodeLogo.tsx index 08ff6a2..e9820ff 100755 --- a/src/components/general/GameNodeLogo.tsx +++ b/src/components/general/GameNodeLogo.tsx @@ -1,9 +1,12 @@ import React from "react"; import { Badge, Group, Image } from "@mantine/core"; interface GameNodeLogoProps extends React.ComponentPropsWithoutRef<"img"> { - withBadge?: boolean; + withBetaBadge?: boolean; } -const GameNodeLogo = ({ withBadge = true, ...props }: GameNodeLogoProps) => { +const GameNodeLogo = ({ + withBetaBadge = true, + ...props +}: GameNodeLogoProps) => { return ( { {...props} src={"/img/main-logo.png"} /> - {withBadge && BETA} + {withBetaBadge && BETA} ); }; diff --git a/src/components/general/shell/GlobalShellHeader/GlobalShellHeader.tsx b/src/components/general/shell/GlobalShellHeader/GlobalShellHeader.tsx index 8311b36..d63b928 100755 --- a/src/components/general/shell/GlobalShellHeader/GlobalShellHeader.tsx +++ b/src/components/general/shell/GlobalShellHeader/GlobalShellHeader.tsx @@ -28,7 +28,10 @@ export default function GlobalShellHeader({ size="sm" /> - + {!userId && ( diff --git a/src/components/general/shell/GlobalShellNavbar/GlobalShellNavbar.tsx b/src/components/general/shell/GlobalShellNavbar/GlobalShellNavbar.tsx index 993635a..cd3927c 100755 --- a/src/components/general/shell/GlobalShellNavbar/GlobalShellNavbar.tsx +++ b/src/components/general/shell/GlobalShellNavbar/GlobalShellNavbar.tsx @@ -20,6 +20,7 @@ import { IconLogout, IconHeart, IconHeartFilled, + IconRefresh, } from "@tabler/icons-react"; import { UserButton } from "@/components/general/input/UserButton/UserButton"; import Link from "next/link"; @@ -48,8 +49,7 @@ const links: NavbarItem[] = [ { icon: IconUser, label: "Library", href: "/library" }, { icon: IconCheckbox, label: "Achievements", href: "/achievements" }, { icon: IconBulb, label: "Activity", href: "/activity" }, - // It's disabled during beta, if you are reading this you're cheating :p - // { icon: IconRefresh, label: "Importer", href: "/importer" }, + { icon: IconRefresh, label: "Importer", href: "/importer" }, ]; interface IGlobalShellNavbarProps extends BaseModalChildrenProps {