diff options
| author | Adam Soltys <[email protected]> | 2026-08-04 01:25:40 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-04 01:25:40 -0700 |
| commit | efb852733fc106bbe6afe607b9cfe171d90e577c (patch) | |
| tree | 11d781bf5d8ee8bbb4474b3348acbcdbacac3481 /src/features | |
| parent | 1a32aa4e9f55cd174d9f571e749c0e154e21dc8d (diff) | |
| download | coinosv3-efb852733fc106bbe6afe607b9cfe171d90e577c.tar.gz coinosv3-efb852733fc106bbe6afe607b9cfe171d90e577c.zip | |
Offer the custom-name form right on the Receive pane
Anyone still on the npub-shaped default sees their address here, not in
the collapsed corner of Settings where the claim form lived.
Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/names.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/features/names.js b/src/features/names.js index 8b7ae74..10ba336 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -310,6 +310,12 @@ export function namesFeature(ctx) { h('div', { html: qrSvg(addr) }), h('div', { class: 'addr-box', style: 'width:100%;text-align:center;font-size:16px' }, addr), copyBtn(addr, t('namesCopy')), + // Still on the npub-shaped default? The people who'd want a real name + // are looking right here, not in a collapsed corner of Settings. + /^npub1/.test(st.name) ? h('details', { class: 'small faint', style: 'align-self:stretch' }, + h('summary', {}, t('namesCustom')), + h('p', { style: 'margin:4px 0' }, t('namesCustomHow')), + claimForm(false)) : null, offerSection()); } |
