mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
refactor: change ResetAchievementsModalProps to use Readonly type for better immutability
This commit is contained in:
parent
addc2a74d3
commit
9849fbb31c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user