1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

Add email prop to loan and consign button

This commit is contained in:
Brett Sun 2015-11-03 11:12:04 +01:00
parent 05e3069240
commit f2555aefcc
2 changed files with 8 additions and 2 deletions

View File

@ -8,7 +8,10 @@ import { omitFromObject } from '../../../utils/general_utils';
import { getLangText } from '../../../utils/lang_utils';
let ConsignButton = React.createClass({
propTypes: omitFromObject(AclButton.propTypes, ['action']),
propTypes: {
...omitFromObject(AclButton.propTypes, ['action']),
email: React.PropTypes.string
},
render() {
return (

View File

@ -8,7 +8,10 @@ import { omitFromObject } from '../../../utils/general_utils';
import { getLangText } from '../../../utils/lang_utils';
let LoanButton = React.createClass({
propTypes: omitFromObject(AclButton.propTypes, ['action']),
propTypes: {
...omitFromObject(AclButton.propTypes, ['action']),
email: React.PropTypes.string
},
render() {
return (