aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/features/hats.js4
-rw-r--r--src/features/messages.js5
-rw-r--r--src/i18n.js1
3 files changed, 7 insertions, 3 deletions
diff --git a/src/features/hats.js b/src/features/hats.js
index 43151ad..829c4d8 100644
--- a/src/features/hats.js
+++ b/src/features/hats.js
@@ -340,7 +340,9 @@ export function hatsFeature(ctx) {
},
// Own-profile editor entry: the door to the shop.
hatShopEntry() {
- return h('button', { class: 'btn-block', onClick: openShop }, '🎩 ' + t('hats'));
+ return h('button', {
+ class: 'linklike small', style: 'padding:0;text-align:left', onClick: openShop,
+ }, '🎩 ' + t('hatShopSupport'));
},
screenView() {
if (ui.screen !== 'wallet' || !ui.hatShop) return null;
diff --git a/src/features/messages.js b/src/features/messages.js
index 7bee3f8..708b40a 100644
--- a/src/features/messages.js
+++ b/src/features/messages.js
@@ -1663,7 +1663,9 @@ export function messagesFeature(ctx) {
h('div', { class: 'col grow', style: 'min-width:0;gap:2px' },
h('div', { class: 'chat-title' }, name),
nip05 ? h('div', { class: 'muted small break' }, nip05) : null,
- showLud ? h('div', { class: 'muted small break' }, '⚡ ' + lud16) : null)),
+ showLud ? h('div', { class: 'muted small break' }, '⚡ ' + lud16) : null,
+ // the hat pitch lives beside the avatar it decorates
+ mine ? hook('hatShopEntry') : null)),
// no spinner while the kind 0 loads — prefetch keeps this rare, and
// an empty beat reads calmer than a spinner
showAbout && !ui.profEdit ? h('p', { class: 'small', style: 'margin:0;white-space:pre-wrap' }, about.slice(0, 1000)) : null,
@@ -1693,7 +1695,6 @@ export function messagesFeature(ctx) {
field(t('profPicture'), 'picture', 'https://…'),
h('button', { class: 'btn-primary btn-block', disabled: ui.profSaving, onClick: saveProfile },
ui.profSaving ? h('span', { class: 'spinner sm' }) : t('save')),
- hook('hatShopEntry'),
logoutBtn())
: mine
? logoutBtn() // the editor renders above once the kind 0 loads
diff --git a/src/i18n.js b/src/i18n.js
index 5f8f478..1a22158 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -226,6 +226,7 @@ const STR = {
profPicture: 'Picture URL',
profSaved: 'Profile published',
hats: 'Hats',
+ hatShopSupport: 'Support Coinos — buy a hat for your avatar',
hatShopTitle: 'Hat shop',
hatShopBlurb: 'Support coinos and wear the proof: your hat shows above your avatar everywhere you appear.',
hatShopOffline: 'The hat stand is unreachable right now.',