Skip to content

Commit

Permalink
LibraryContext: fix GameCard
Browse files Browse the repository at this point in the history
  • Loading branch information
arielj committed Oct 22, 2023
1 parent b3034c8 commit a4d51d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontend/screens/Library/components/GameCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -87,7 +88,6 @@ const GameCard = ({
const navigate = useNavigate()

const {
layout,
hiddenGames,
favouriteGames,
allTilesInColor,
Expand All @@ -96,6 +96,8 @@ const GameCard = ({
activeController
} = useContext(ContextProvider)

const { layout } = useContext(LibraryContext)

const {
title,
art_cover,
Expand Down

0 comments on commit a4d51d4

Please sign in to comment.