feat(ui): show single iOS signer action

This commit is contained in:
2026-04-10 19:11:18 +05:30
committed by hodlbod
parent 6f953ddbc7
commit f62171a15e
2 changed files with 6 additions and 12 deletions
+5 -9
View File
@@ -11,13 +11,10 @@
const {controller}: Props = $props()
const {url, loading} = controller
const isIos = Capacitor.getPlatform() === "ios"
const openAegis = () => {
controller.launchSigner("aegis")
}
const openNostrSigner = () => {
controller.launchSigner("nostrsigner")
const openSigner = () => {
controller.launchSigner()
}
</script>
@@ -30,10 +27,9 @@
<div class="flex flex-col items-center gap-2">
<QRCode code={$url} />
<p class="text-sm opacity-75">Scan with your signer to log in, or click to copy.</p>
{#if Capacitor.isNativePlatform()}
{#if isIos}
<div class="flex w-full flex-col gap-2">
<Button class="btn btn-primary" onclick={openAegis}>Open in Aegis</Button>
<Button class="btn" onclick={openNostrSigner}>Open in Nostr Signer</Button>
<Button class="btn btn-primary" onclick={openSigner}>Open in Signer</Button>
</div>
{/if}
</div>