Skip to content

Commit e475a9c

Browse files
authored
Merge pull request #5 from berkandirim/master
align property for Button component
2 parents e4fa2cd + f31dc80 commit e475a9c

File tree

3 files changed

+54
-80
lines changed

3 files changed

+54
-80
lines changed

package-lock.json

Lines changed: 48 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "htmplar",
33
"description": "Developer friendly email development with React",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"repository": "https://github.com/adidas/htmplar.git",
66
"author": "Bilal Çınarlı <bcinarli@gmail.com>",
77
"license": "MIT",

src/templating/button.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import classNames from 'classnames';
66
import { setMedium, slugify, createID } from './utils';
77

88
const Button = (props) => {
9-
const { href, children, id, isBlock, className, allCaps, medium } = props;
9+
const { href, children, id, isBlock, className, allCaps, medium, align } = props;
1010
const availableIn = setMedium(medium);
1111

1212
let items = children;
@@ -46,7 +46,8 @@ const Button = (props) => {
4646
border="0"
4747
cellPadding={ 0 }
4848
cellSpacing={ 0 }
49-
id={ _id }>
49+
id={ _id }
50+
align={ align }>
5051
<tr>
5152
<td className="htmplar-button-container htmplar-cell">
5253
<table className={ classNames('htmplar-button-inner') }
@@ -114,7 +115,8 @@ Button.propTypes = {
114115
PropTypes.string,
115116
PropTypes.array,
116117
PropTypes.object
117-
])
118+
]),
119+
align: PropTypes.string
118120
};
119121

120122
export default Button;

0 commit comments

Comments
 (0)