fix spelling

This commit is contained in:
frankiebee 2017-04-24 20:56:31 +02:00
parent df9e40be63
commit 79f88398ac
2 changed files with 4 additions and 4 deletions

View File

@ -104,7 +104,7 @@ BuyButtonSubview.prototype.render = function () {
}, [
h(RadioList, {
defaultFocus: props.buyView.subview,
lables: [
labels: [
'Coinbase',
'ShapeShift',
],

View File

@ -14,7 +14,7 @@ RadioList.prototype.render = function () {
const activeClass = '.custom-radio-selected'
const inactiveClass = '.custom-radio-inactive'
const {
lables,
labels,
defaultFocus,
} = props
@ -30,7 +30,7 @@ RadioList.prototype.render = function () {
marginRight: '5px',
},
},
lables.map((lable, i) => {
labels.map((lable, i) => {
let isSelcted = (this.state !== null)
isSelcted = isSelcted ? (this.state.selected === lable) : (defaultFocus === lable)
return h(isSelcted ? activeClass : inactiveClass, {
@ -43,7 +43,7 @@ RadioList.prototype.render = function () {
})
),
h('.text', {},
lables.map((lable) => {
labels.map((lable) => {
if (props.subtext) {
return h('.flex-row', {}, [
h('.radio-titles', lable),