From a4d51d4b0d08199f124c583e97f59b5316febf30 Mon Sep 17 00:00:00 2001 From: Ariel Juodziukynas Date: Sun, 22 Oct 2023 00:10:36 -0300 Subject: [PATCH] LibraryContext: fix GameCard --- src/frontend/screens/Library/components/GameCard/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/screens/Library/components/GameCard/index.tsx b/src/frontend/screens/Library/components/GameCard/index.tsx index 8dc2a2b85d..ba1519d42c 100644 --- a/src/frontend/screens/Library/components/GameCard/index.tsx +++ b/src/frontend/screens/Library/components/GameCard/index.tsx @@ -39,6 +39,7 @@ import StoreLogos from 'frontend/components/UI/StoreLogos' import UninstallModal from 'frontend/components/UI/UninstallModal' import { getCardStatus, getImageFormatting } from './constants' import { hasStatus } from 'frontend/hooks/hasStatus' +import LibraryContext from '../../LibraryContext' interface Card { buttonClick: () => void @@ -87,7 +88,6 @@ const GameCard = ({ const navigate = useNavigate() const { - layout, hiddenGames, favouriteGames, allTilesInColor, @@ -96,6 +96,8 @@ const GameCard = ({ activeController } = useContext(ContextProvider) + const { layout } = useContext(LibraryContext) + const { title, art_cover,