aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/app.js b/src/app.js
index 2e52e56..e6c9018 100644
--- a/src/app.js
+++ b/src/app.js
@@ -2800,15 +2800,17 @@ function onboardScreen() {
o.step = 'seed';
render();
} }, t('onbStart')),
- // Same shape as the sign-in button on the unlock screen: .btn-block
- // forces display:block, so the flex centering goes on an inner wrapper.
- h('button', { class: 'btn-block', style: 'padding:14px', onClick: () => {
- o.step = 'signin';
- ui.nostrLoginOpen = true;
- render();
- } }, h('span', { style: 'display:flex;align-items:center;justify-content:center;gap:8px' },
- h('span', { style: 'display:flex;flex-shrink:0', html: NOSTR_MARK }),
- t('nlSignIn'))),
+ // All the sign-in doors right on the welcome screen (Google, passkey,
+ // Nostr) — the feature supplies them; the single-button fallback keeps
+ // builds without it working.
+ featureHook('frontDoorSignin')
+ || h('button', { class: 'btn-block', style: 'padding:14px', onClick: () => {
+ o.step = 'signin';
+ ui.nostrLoginOpen = true;
+ render();
+ } }, h('span', { style: 'display:flex;align-items:center;justify-content:center;gap:8px' },
+ h('span', { style: 'display:flex;flex-shrink:0', html: NOSTR_MARK }),
+ t('nlSignIn'))),
ui.onbError ? h('div', { class: 'notice err' }, ui.onbError) : null,
]);
}