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

Extending the Widgets for more customization #13

Open
5 of 6 tasks
joshferrell opened this issue Nov 28, 2017 · 1 comment
Open
5 of 6 tasks

Extending the Widgets for more customization #13

joshferrell opened this issue Nov 28, 2017 · 1 comment

Comments

@joshferrell
Copy link
Owner

Prerequisites

  • Can you reproduce the problem in safe mode?
  • Are you running the latest version?
  • Did you check the debugging guide?
  • Did you check the FAQs on Discuss?
  • Are you reporting to the correct repository?
  • Did you perform a cursory search?

For more information, see the CONTRIBUTING guide.

Description

Modify the widgets to be more extensible by using a theme HOC that modifies a base email, header, and footer.

Example:

const AppEmail = Theme(CustomHeader, CustomFooter);
<AppEmail>
   <Body>
       <mj-text><p>test</p></mj-text>
   </Body>
</AppEmail>

Theme looks for a custom header, body and footer. If a body and footer are not included, it should use the ones defined in the Theme HOC. This should allow more extensible components for the widget library.

@joshferrell joshferrell added this to the version 1.0.0 milestone Nov 29, 2017
@joshferrell
Copy link
Owner Author

joshferrell commented Nov 29, 2017

  • <Header>
  • <StyledHeader>
  • <Footer>
  • <StyledFooter>
  • <Email>
  • <HeaderImage>
  • <HeaderSubject>
  • <FooterAddress>
  • <FooterContact>
  • <Settings>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant