Skip to content

Commit 1be91e2

Browse files
authored
Merge pull request #1951 from anyproto/feature/JS-8832-update-onboarding-email-screen
Feature/JS-8832: Onboarding email screen update
2 parents f111e0f + 6c1eebe commit 1be91e2

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

src/json/text.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@
451451
"authSelectLogin": "I already have a Key",
452452
"authSelectSignup": "I am new here",
453453
"authDisclaimer": "By continuing you agree to our <a href=\"%s\">Terms of Use</a> and <a href=\"%s\">Privacy Policy</a>",
454+
"onboardEmailDisclaimer": "By clicking Continue, you agree to receive emails from Anytype. You can unsubscribe at any time.",
454455

455456
"authLoginTitle": "Welcome back",
456457
"authLoginLabel": "Enter your key to access your vault",
@@ -476,7 +477,7 @@
476477
"authOnboardPhraseRevealAndCopy": "Reveal and Copy",
477478

478479
"authOnboardEmailTitle": "Stay in the loop",
479-
"authOnboardEmailLabel": "We'd love to share tips, tricks and product updates with you. Your email is never linked to your identity. We won't share your data. Ever.",
480+
"authOnboardEmailLabel": "Wed love to share product updates, tips, and community news.<br/>Your email is not linked to your data.",
480481
"authOnboardEmailPlaceholder": "Enter your email...",
481482

482483
"authOnboardPersonaTitle": "Tell Us About Yourself",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React, { forwardRef } from 'react';
2+
import { Label } from 'Component';
3+
import { I, U, J, translate } from 'Lib';
4+
5+
const FooterAuthOnboardEmail = forwardRef<{}, I.FooterComponent>(() => {
6+
7+
return (
8+
<Label
9+
className="disclaimer"
10+
text={translate('onboardEmailDisclaimer')}
11+
/>
12+
);
13+
14+
});
15+
16+
export default FooterAuthOnboardEmail;

src/ts/component/footer/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { I } from 'Lib';
33

44
import FooterAuthIndex from './auth';
55
import FooterAuthDisclaimer from './auth/disclaimer';
6+
import FooterAuthOnboardEmail from './auth/email';
67
import FooterMainObject from './main/object';
78

89
interface Props extends I.FooterComponent {
@@ -13,6 +14,7 @@ interface Props extends I.FooterComponent {
1314
const Components = {
1415
authIndex: FooterAuthIndex,
1516
authDisclaimer: FooterAuthDisclaimer,
17+
authOnboardEmail: FooterAuthOnboardEmail,
1618
mainObject: FooterMainObject,
1719
};
1820

@@ -36,4 +38,4 @@ const Footer = forwardRef<{}, Props>((props, ref) => {
3638

3739
});
3840

39-
export default Footer;
41+
export default Footer;

src/ts/component/page/auth/onboard.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { forwardRef, useRef, useState, useEffect, KeyboardEvent } from 'react';
22
import { observer } from 'mobx-react';
3-
import { Frame, Title, Label, Button, Icon, Input, Error, Header, Phrase } from 'Component';
3+
import { Frame, Title, Label, Button, Icon, Input, Error, Header, Phrase, Footer } from 'Component';
44
import { I, C, S, U, translate, Animation, analytics, keyboard, Renderer, Onboarding } from 'Lib';
55
import { set } from 'lodash';
66

@@ -220,6 +220,7 @@ const PageAuthOnboard = observer(forwardRef<I.PageRef, I.PageComponent>((props,
220220
let content = null;
221221
let additional = null;
222222
let buttons = null;
223+
let footer = null;
223224

224225
switch (stage) {
225226
case Stage.Phrase: {
@@ -290,6 +291,8 @@ const PageAuthOnboard = observer(forwardRef<I.PageRef, I.PageComponent>((props,
290291
</div>
291292
</>
292293
);
294+
295+
footer = <Footer {...props} component="authOnboardEmail" />;
293296
break;
294297
};
295298

@@ -385,6 +388,8 @@ const PageAuthOnboard = observer(forwardRef<I.PageRef, I.PageComponent>((props,
385388
<Error className="animation" text={error} />
386389
<div className="buttons">{buttons}</div>
387390
</Frame>
391+
392+
{footer}
388393
</div>
389394
);
390395

0 commit comments

Comments
 (0)