refactor: change ResetAchievementsModalProps to use Readonly type for better immutability

This commit is contained in:
Hachi-R 2025-01-02 06:36:55 -03:00
parent addc2a74d3
commit 9849fbb31c

View File

@ -3,12 +3,12 @@ import { Button, Modal } from "@renderer/components";
import * as styles from "./remove-from-library-modal.css";
import type { Game } from "@types";
interface ResetAchievementsModalProps {
type ResetAchievementsModalProps = Readonly<{
visible: boolean;
game: Game;
onClose: () => void;
resetAchievements: () => Promise<void>;
}
}>;
export function ResetAchievementsModal({
onClose,