feat(settings/options/2048): quit confirmation

This commit is contained in:
2026-01-30 23:36:26 +01:00
parent c1d58f598f
commit 4985f41571

View File

@@ -8,7 +8,13 @@ const { assets } = useAssets();
const { onRender } = useScreen();
const handleActivateB = () => {
store.closeSubMenu();
confirmationModal.open({
text: $t("settings.options.2048.quitConfirmation"),
onConfirm: () => {},
onClosed: (choice) => {
if (choice === "confirm") store.closeSubMenu();
},
});
};
const handleActivateA = () => {