Skip to content

Instantly share code, notes, and snippets.

@rogierslag
Created August 30, 2017 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogierslag/686c763c1f937a03b76c08006613a9f4 to your computer and use it in GitHub Desktop.
Save rogierslag/686c763c1f937a03b76c08006613a9f4 to your computer and use it in GitHub Desktop.
rogierslag.nl - maily example 8
const React = require('react');
const style = require('../style');
const Envelope = require('./envelope');
const Text = require('./text');
const FullWidthSection = require('./fullWidthSection');
const Invoice = React.createClass({
propTypes: {
user_name: React.PropTypes.string.isRequired,
order_id: React.PropTypes.string.isRequired,
},
render() {
return (
<Envelope>
<FullWidthSection>
<mj-text font-weight="bold"
font-size={`${style.fontSize.large}px`}
padding-top={`${style.distance.small}px`}
padding-bottom={`${style.distance.small}px`}>
Hi {this.props.user_name},
</mj-text>
<Text>
Attached you will find your invoice for order #{this.props.order_id}
</Text>
<mj-text font-size={`${style.fontSize.medium}px`}
padding-top={`${style.distance.small}px`}
padding-bottom={`${style.distance.small}px`}>
Greetings
<br />
the inventid team
</mj-text>
</FullWidthSection>
</Envelope>
);
}
});
module.exports = Invoice;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment