Skip to content

Commit

Permalink
readonly props
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroperin committed Feb 4, 2025
1 parent 96719fa commit 0481a08
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/renderer/src/components/sidebar/sidebar-game-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ import { LibraryGame } from "@types";
import cn from "classnames";
import { useLocation } from "react-router-dom";

interface SidebarGameItemProps {
game: LibraryGame;
handleSidebarGameClick: (event: React.MouseEvent, game: LibraryGame) => void;
getGameTitle: (game: LibraryGame) => string;
}

export function SidebarGameItem({
game,
handleSidebarGameClick,
getGameTitle,
}: {
game: LibraryGame;
handleSidebarGameClick: (event: React.MouseEvent, game: LibraryGame) => void;
getGameTitle: (game: LibraryGame) => string;
}) {
}: Readonly<SidebarGameItemProps>) {
const location = useLocation();

return (
Expand Down

0 comments on commit 0481a08

Please sign in to comment.