mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 11:12:07 +00:00
readonly props
This commit is contained in:
parent
96719fa1da
commit
0481a08dd3
1 changed files with 7 additions and 5 deletions
|
@ -3,15 +3,17 @@ import { LibraryGame } from "@types";
|
||||||
import cn from "classnames";
|
import cn from "classnames";
|
||||||
import { useLocation } from "react-router-dom";
|
import { useLocation } from "react-router-dom";
|
||||||
|
|
||||||
|
interface SidebarGameItemProps {
|
||||||
|
game: LibraryGame;
|
||||||
|
handleSidebarGameClick: (event: React.MouseEvent, game: LibraryGame) => void;
|
||||||
|
getGameTitle: (game: LibraryGame) => string;
|
||||||
|
}
|
||||||
|
|
||||||
export function SidebarGameItem({
|
export function SidebarGameItem({
|
||||||
game,
|
game,
|
||||||
handleSidebarGameClick,
|
handleSidebarGameClick,
|
||||||
getGameTitle,
|
getGameTitle,
|
||||||
}: {
|
}: Readonly<SidebarGameItemProps>) {
|
||||||
game: LibraryGame;
|
|
||||||
handleSidebarGameClick: (event: React.MouseEvent, game: LibraryGame) => void;
|
|
||||||
getGameTitle: (game: LibraryGame) => string;
|
|
||||||
}) {
|
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue