mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 22:06:17 +00:00
fix: fixing lint
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
() =>
|
||||
|
||||
@@ -209,8 +209,6 @@
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
&__game-image {
|
||||
object-fit: cover;
|
||||
border-radius: 4px;
|
||||
|
||||
@@ -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 ??
|
||||
|
||||
Reference in New Issue
Block a user