mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +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 * as styles from "./remove-from-library-modal.css";
|
||||||
import type { Game } from "@types";
|
import type { Game } from "@types";
|
||||||
|
|
||||||
interface ResetAchievementsModalProps {
|
type ResetAchievementsModalProps = Readonly<{
|
||||||
visible: boolean;
|
visible: boolean;
|
||||||
game: Game;
|
game: Game;
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
resetAchievements: () => Promise<void>;
|
resetAchievements: () => Promise<void>;
|
||||||
}
|
}>;
|
||||||
|
|
||||||
export function ResetAchievementsModal({
|
export function ResetAchievementsModal({
|
||||||
onClose,
|
onClose,
|
||||||
|
Loading…
Reference in New Issue
Block a user