feat(contact): use new confirm modal and buttons

This commit is contained in:
2025-12-19 19:18:03 +01:00
parent 5bc57f5edc
commit 2a7e61ea5c
3 changed files with 34 additions and 14 deletions

View File

@@ -1,8 +1,4 @@
<script setup lang="ts">
const props = defineProps<{
okLabel: "Copy" | "Open";
}>();
const store = useContactStore();
const { assets } = useAssets();
@@ -20,13 +16,11 @@ useRender((ctx) => {
);
// bottom bar
ctx.translate(0, store.isIntro ? store.intro.bottomBarY : SCREEN_HEIGHT - 24);
ctx.drawImage(assets.contact.bottomScreen.bottomBar, 0, 0);
ctx.drawImage(assets.contact.bottomScreen.okButton, 144, 4);
ctx.font = "10px NDS10";
ctx.fillStyle = "#000000";
ctx.fillText(props.okLabel, 144 + 35, 4 + 13);
ctx.drawImage(
assets.contact.bottomScreen.bottomBar,
0,
store.isIntro ? store.intro.bottomBarY : SCREEN_HEIGHT - 24,
);
});
defineOptions({