diff options
| author | Adam Soltys <[email protected]> | 2026-07-04 07:53:03 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-07-04 07:53:03 -0700 |
| commit | 2da22a3dc82bc8c0beb456097c2749ebc02d8017 (patch) | |
| tree | 8560c3a3bb161045e57031bce0e796544653f6be /src/app.js | |
| parent | d8da74e50a374d59629b8ec8731e8cb38bc6b42e (diff) | |
| download | coinosv3-2da22a3dc82bc8c0beb456097c2749ebc02d8017.tar.gz coinosv3-2da22a3dc82bc8c0beb456097c2749ebc02d8017.zip | |
Gift claim: make the wallet chooser read as a choice
The existing-wallet buttons looked like inert inputs. Now: a "Receive
into one of your wallets:" label, a chevron on each wallet row so it
reads as tappable, and an "or" divider before the new-wallet button.
(tools/ark/gift-shot.js: screenshot harness that mints a real regtest
gift and opens its link.)
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QFAcD4V284DvYZZHP7Rxxy
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -2302,11 +2302,15 @@ function claimChooseView() { h('p', { class: 'muted', style: 'margin:0' }, t('claimIntoPrompt')) ), h('div', { class: 'card col gap6' }, + h('div', { class: 'small muted' }, t('claimIntoExisting')), ...accounts.map((a) => - h('button', { class: 'btn-block', style: 'text-align:left', onClick: () => claimIntoAccount(a, code) }, - a.label, - a.type === 'watch' ? h('span', { class: 'small faint', style: 'margin-left:6px' }, '(' + t('watchOnly') + ')') : null) + h('button', { class: 'btn-block', style: 'display:flex;justify-content:space-between;align-items:center;text-align:left', onClick: () => claimIntoAccount(a, code) }, + h('span', {}, + a.label, + a.type === 'watch' ? h('span', { class: 'small faint', style: 'margin-left:6px' }, '(' + t('watchOnly') + ')') : null), + h('span', { class: 'muted', style: 'font-size:18px;line-height:1' }, '\u203a')) ), + h('div', { class: 'small faint', style: 'text-align:center' }, t('claimOr')), h('button', { class: 'btn-primary btn-block', onClick: () => { ui.claimChoose = null; enterWallet(newMnemonic(), '', { gift: code }); } }, t('claimNewWallet')) ) ); |
