mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
refactor: remove unnecessary useEffect in LibraryGameCard
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { LibraryGame } from "@types";
|
import { LibraryGame } from "@types";
|
||||||
import { useGameCard } from "@renderer/hooks";
|
import { useGameCard } from "@renderer/hooks";
|
||||||
import { memo, useState, useEffect } from "react";
|
import { memo, useState } from "react";
|
||||||
import {
|
import {
|
||||||
ClockIcon,
|
ClockIcon,
|
||||||
AlertFillIcon,
|
AlertFillIcon,
|
||||||
@@ -34,10 +34,6 @@ export const LibraryGameCard = memo(function LibraryGameCard({
|
|||||||
|
|
||||||
const [imageError, setImageError] = useState(false);
|
const [imageError, setImageError] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
setImageError(false);
|
|
||||||
}, [coverImage]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user