Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use dynamic flow for protect yourself screen #40

Merged
merged 3 commits into from Mar 24, 2020

Conversation

darcien
Copy link
Member

@darcien darcien commented Mar 24, 2020

Related to #37

Only replace the carousel in protect yourself.

Some screen property is not yet handled.

Preview:
image

Comment on lines +83 to +90
{screen.bodyTexts?.map((text) => (
<BodyText key={text}>
{/* TODO: Should not use non-literal string with translate function */}
{t.frag(text, {
em: (text) => <EmText>{text}</EmText>,
})}
</BodyText>
))}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ionic app is using DOMPurify to render the em tag.

For now, I'll just ship it using t.frag even though it's not supposed to receive non-literal string.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'll make a followup PR for parsing the actual html, but that won't be till later this week.

@darcien darcien merged commit 45e6170 into master Mar 24, 2020
@darcien darcien deleted the feat/use-dynamic-content branch March 24, 2020 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants