Skip to content

Commit

Permalink
Merge pull request #5 from berkandirim/master
Browse files Browse the repository at this point in the history
align property for Button component
  • Loading branch information
berkandirim authored Dec 13, 2018
2 parents e4fa2cd + f31dc80 commit e475a9c
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 80 deletions.
124 changes: 48 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "htmplar",
"description": "Developer friendly email development with React",
"version": "0.2.0",
"version": "0.2.1",
"repository": "https://github.com/adidas/htmplar.git",
"author": "Bilal Çınarlı <[email protected]>",
"license": "MIT",
Expand Down
8 changes: 5 additions & 3 deletions src/templating/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import classNames from 'classnames';
import { setMedium, slugify, createID } from './utils';

const Button = (props) => {
const { href, children, id, isBlock, className, allCaps, medium } = props;
const { href, children, id, isBlock, className, allCaps, medium, align } = props;
const availableIn = setMedium(medium);

let items = children;
Expand Down Expand Up @@ -46,7 +46,8 @@ const Button = (props) => {
border="0"
cellPadding={ 0 }
cellSpacing={ 0 }
id={ _id }>
id={ _id }
align={ align }>
<tr>
<td className="htmplar-button-container htmplar-cell">
<table className={ classNames('htmplar-button-inner') }
Expand Down Expand Up @@ -114,7 +115,8 @@ Button.propTypes = {
PropTypes.string,
PropTypes.array,
PropTypes.object
])
]),
align: PropTypes.string
};

export default Button;

0 comments on commit e475a9c

Please sign in to comment.