mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 09:13:57 +00:00
Changed props to be read-only, started using coalescing operator
This commit is contained in:
@@ -17,10 +17,10 @@ export interface SidebarAddingCustomGameModalProps {
|
||||
onClose: () => void;
|
||||
}
|
||||
|
||||
export function SidebarAddingCustomGameModal({
|
||||
export function SidebarAddingCustomGameModal ({
|
||||
visible,
|
||||
onClose,
|
||||
}: SidebarAddingCustomGameModalProps) {
|
||||
}: Readonly<SidebarAddingCustomGameModalProps>) {
|
||||
const { t } = useTranslation("sidebar");
|
||||
const { updateLibrary } = useLibrary();
|
||||
const { showSuccessToast, showErrorToast } = useToast();
|
||||
|
||||
@@ -20,7 +20,7 @@ export function EditCustomGameModal({
|
||||
onClose,
|
||||
game,
|
||||
onGameUpdated,
|
||||
}: EditCustomGameModalProps) {
|
||||
}: Readonly<EditCustomGameModalProps>) {
|
||||
const { t } = useTranslation("sidebar");
|
||||
const { showSuccessToast, showErrorToast } = useToast();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user