mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-09-30 00:41:09 +00:00
Fix translations on create account wizard
This commit is contained in:
parent
40f7f0759a
commit
b415744936
@ -407,12 +407,10 @@ const CreateAccount: Component = () => { const intl = useIntl();
|
||||
|
||||
const onFollow = (pubkey: string) => {
|
||||
setFollowed(followed.length, () => pubkey);
|
||||
console.log('FOL: ', followed);
|
||||
}
|
||||
|
||||
const onUnfollow = (pubkey: string) => {
|
||||
const follows = followed.filter(f => f !== pubkey);
|
||||
console.log('UNFOL: ', follows);
|
||||
setFollowed(() => [...follows]);
|
||||
}
|
||||
|
||||
@ -430,12 +428,12 @@ const CreateAccount: Component = () => { const intl = useIntl();
|
||||
<Switch>
|
||||
<Match when={currentStep() === 'name'}>
|
||||
<div class={styles.stepIntro}>
|
||||
Let’s start with the basics. Only the username is required!
|
||||
{intl.formatMessage(tAccount.create.descriptions.step_one)}
|
||||
</div>
|
||||
</Match>
|
||||
<Match when={currentStep() === 'info'}>
|
||||
<div class={styles.stepIntro}>
|
||||
Tell us a bit more about yourself. Everything on this page is optional!
|
||||
{intl.formatMessage(tAccount.create.descriptions.step_two)}
|
||||
</div>
|
||||
</Match>
|
||||
</Switch>
|
||||
@ -639,7 +637,7 @@ const CreateAccount: Component = () => { const intl = useIntl();
|
||||
|
||||
<div class={currentStep() === 'follow' ? '' : 'invisible'}>
|
||||
<div class={styles.stepIntro}>
|
||||
We found some Nostr accounts for you to follow:
|
||||
{intl.formatMessage(tAccount.create.descriptions.step_three)}
|
||||
</div>
|
||||
<div class={styles.suggestions}>
|
||||
<For each={suggestedData.groupNames}>
|
||||
|
@ -47,11 +47,20 @@ export const account = {
|
||||
},
|
||||
descriptions: {
|
||||
step_one: {
|
||||
id: 'settings.account.descriptions.step_on',
|
||||
id: 'settings.account.descriptions.step_one',
|
||||
defaultMessage: "Let’s start with the basics. Only the username is required!",
|
||||
description: 'Description on step one',
|
||||
},
|
||||
|
||||
step_two: {
|
||||
id: 'settings.account.descriptions.step_two',
|
||||
defaultMessage: "Tell us a bit more about yourself. Everything on this page is optional!",
|
||||
description: 'Description on step two',
|
||||
},
|
||||
step_three: {
|
||||
id: 'settings.account.descriptions.step_three',
|
||||
defaultMessage: "We found some Nostr accounts for you to follow:",
|
||||
description: 'Description on step three',
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user