fix: fixing lint

This commit is contained in:
Chubby Granny Chaser
2025-11-10 23:07:52 +00:00
parent 9854ed2f53
commit 7c1adb70ea
4 changed files with 6 additions and 24 deletions

View File

@@ -84,7 +84,6 @@
gap: calc(globals.$spacing-unit);
}
&__logo-container {
flex: 1;
display: flex;
@@ -207,5 +206,4 @@
color: rgba(255, 255, 255, 0.85);
white-space: nowrap;
}
}

View File

@@ -1,10 +1,6 @@
import { LibraryGame } from "@types";
import { useGameCard } from "@renderer/hooks";
import {
ClockIcon,
AlertFillIcon,
TrophyIcon,
} from "@primer/octicons-react";
import { ClockIcon, AlertFillIcon, TrophyIcon } from "@primer/octicons-react";
import { memo, useMemo } from "react";
import "./library-game-card-large.scss";
@@ -28,11 +24,8 @@ export const LibraryGameCardLarge = memo(function LibraryGameCardLarge({
game,
onContextMenu,
}: Readonly<LibraryGameCardLargeProps>) {
const {
formatPlayTime,
handleCardClick,
handleContextMenuClick,
} = useGameCard(game, onContextMenu);
const { formatPlayTime, handleCardClick, handleContextMenuClick } =
useGameCard(game, onContextMenu);
const backgroundImage = useMemo(
() =>

View File

@@ -209,8 +209,6 @@
transform: scale(1);
}
&__game-image {
object-fit: cover;
border-radius: 4px;

View File

@@ -1,11 +1,7 @@
import { LibraryGame } from "@types";
import { useGameCard } from "@renderer/hooks";
import { memo } from "react";
import {
ClockIcon,
AlertFillIcon,
TrophyIcon,
} from "@primer/octicons-react";
import { ClockIcon, AlertFillIcon, TrophyIcon } from "@primer/octicons-react";
import "./library-game-card.scss";
interface LibraryGameCardProps {
@@ -26,11 +22,8 @@ export const LibraryGameCard = memo(function LibraryGameCard({
onMouseLeave,
onContextMenu,
}: Readonly<LibraryGameCardProps>) {
const {
formatPlayTime,
handleCardClick,
handleContextMenuClick,
} = useGameCard(game, onContextMenu);
const { formatPlayTime, handleCardClick, handleContextMenuClick } =
useGameCard(game, onContextMenu);
const coverImage =
game.coverImageUrl ??