Skip to content

Commit

Permalink
Rename props for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
sbycrosz committed Dec 6, 2016
1 parent 795d885 commit 997d2ba
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/CreditCardInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,16 @@ export default class CreditCardInput extends Component {
labels: PropTypes.object,
placeholders: PropTypes.object,

imageFront: PropTypes.number,
imageBack: PropTypes.number,
labelStyle: Text.propTypes.style,
inputStyle: Text.propTypes.style,
inputContainerStyle: View.propTypes.style,

validColor: PropTypes.string,
invalidColor: PropTypes.string,
placeholderColor: PropTypes.string,

cardImageFront: PropTypes.number,
cardImageBack: PropTypes.number,
cardScale: PropTypes.number,
cardFontFamily: PropTypes.string,
};
Expand Down Expand Up @@ -102,7 +103,7 @@ export default class CreditCardInput extends Component {

render() {
const {
imageFront, imageBack, inputContainerStyle,
cardImageFront, cardImageBack, inputContainerStyle,
values: { number, expiry, cvc, name, type }, focused,
requiresName, requiresCVC, requiresPostalCode,
cardScale, cardFontFamily,
Expand All @@ -114,8 +115,8 @@ export default class CreditCardInput extends Component {
brand={type}
scale={cardScale}
fontFamily={cardFontFamily}
imageFront={imageFront}
imageBack={imageBack}
imageFront={cardImageFront}
imageBack={cardImageBack}
name={requiresName ? name : " "}
number={number}
expiry={expiry}
Expand Down

0 comments on commit 997d2ba

Please sign in to comment.