From d447558ac07dbce6ba30264e8449a6b8e8cb781e Mon Sep 17 00:00:00 2001 From: BasVanDeGroep Date: Thu, 18 Jan 2024 21:52:43 +0100 Subject: [PATCH] update --- app/components/new-landing/sections/Games.tsx | 19 +++++++++++++++++-- app/routes/_index.tsx | 3 ++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/app/components/new-landing/sections/Games.tsx b/app/components/new-landing/sections/Games.tsx index 4a6f9423..07be3c40 100644 --- a/app/components/new-landing/sections/Games.tsx +++ b/app/components/new-landing/sections/Games.tsx @@ -30,6 +30,7 @@ import TOE_BACKGROUND from "~/../public/img/new-landing/game-backgrounds/The_ToE import { twMerge } from "tailwind-merge"; import { ChevronRightIcon } from "../misc/Icons"; +import { set } from "nprogress"; const games = [ { @@ -92,11 +93,25 @@ const Games = () => { /> {/* Carousel container */} -
+
{games.map((game) => (
{ + if (!(activeGame === games.indexOf(game))) { + setActiveGame(games.indexOf(game)); + } + }} > - {/* */} +