-
Notifications
You must be signed in to change notification settings - Fork 70
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
Fix/4274 write nicer html emails #4274 #4410
Fix/4274 write nicer html emails #4274 #4410
Conversation
…Write_nicer_html_emails
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
</ModalHeader> | ||
<ModalContent> | ||
<ContentTitle>Hi {'{name}'},</ContentTitle> | ||
<ContentBody>New proposal {'{proposal name}'} is created... there are 2 days left to vote...</ContentBody> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the issue #4274
you must create six variations of notifications. Please create the text of the contentbody and button as variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You must define "EmailNotifications.tsx" inside "src/common"
setShowModal(true) | ||
} | ||
const openModal280 = () => { | ||
setShowModal280(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this value must be defined as content variable, not state variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AnttoLion I don't know if this PR is still in progress, but in case it is:
Using React to generate html emails looks like a bad idea. Remember that the emails are generated on the backend so there shouldn't be any changes in packages/ui/*
. Also you can't run js in emails and even though React can be used for ssr it's really not the right tool when the frontend can't run React.
@thesan This is superseded by my PR, can be closed |
Done in #4511 |
No description provided.