From 4960bef2fc6b3656a89a732298226684043e151a Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Mon, 29 Dec 2025 19:59:15 +0100 Subject: [PATCH] refactor(contact): use CommonButtons @activate events --- .../Contact/BottomScreen/BottomScreen.vue | 29 ++----------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/app/components/Contact/BottomScreen/BottomScreen.vue b/app/components/Contact/BottomScreen/BottomScreen.vue index 1b6c30a..fb7665e 100644 --- a/app/components/Contact/BottomScreen/BottomScreen.vue +++ b/app/components/Contact/BottomScreen/BottomScreen.vue @@ -69,33 +69,6 @@ const actionateButton = async (button: (typeof selectedButton)["value"]) => { }); } }; - -// TODO: use @activate events from common buttons - -const QUIT_BUTTON: Rect = [31, 172, 80, 18]; -const OK_BUTTON: Rect = [144, 172, 80, 18]; - -useScreenClick((x, y) => { - if (modalState.value.isOpen || store.isIntro || store.isOutro) { - return; - } - - if (rectContains(QUIT_BUTTON, [x, y])) { - store.animateOutro(); - } else if (rectContains(OK_BUTTON, [x, y])) { - actionateButton(selectedButton.value); - } -}); - -useKeyDown((key) => { - if (modalState.value.isOpen || store.isIntro || store.isOutro) return; - - switch (key) { - case "NDS_B": - store.animateOutro(); - break; - } -});