The fixes never end #1519

Merged
neb-b merged 6 commits from release-blockers into master 2018-06-01 20:32:48 +02:00
2 changed files with 12 additions and 6 deletions
Showing only changes of commit 53b9e5344b - Show all commits

View file

@ -37,6 +37,7 @@
"jsx-a11y/label-has-for": 0,
"import/prefer-default-export": 0,
"no-return-assign": 0,
"react/require-default-props": 0
"react/require-default-props": 0,
"react/jsx-closing-tag-location": 0
}
neb-b commented 2018-06-01 16:52:58 +02:00 (Migrated from github.com)
Review

This is handled by prettier

This is handled by prettier
}

View file

@ -1,12 +1,18 @@
// I'll come back to this
/* esline-disable */
// @flow
import React from 'react';
import { Modal } from 'modal/modal';
import CurrencySymbol from 'component/common/lbc-symbol';
import CreditAmount from 'component/common/credit-amount';
import Button from 'component/button';
const ModalCreditIntro = props => {
type Props = {
totalRewardValue: number,
currentBalance: number,
closeModal: () => void,
addBalance: () => void,
};
const ModalCreditIntro = (props: Props) => {
const { closeModal, totalRewardValue, currentBalance, addBalance } = props;
const totalRewardRounded = Math.round(totalRewardValue / 10) * 10;
@ -25,7 +31,7 @@ const ModalCreditIntro = props => {
can take are limited.
</p>
)}
{totalRewardValue && (
{Boolean(totalRewardValue) && (
<p>
There are a variety of ways to get credits, including more than{' '}
<CreditAmount noStyle amount={totalRewardRounded} />{' '}
@ -46,4 +52,3 @@ const ModalCreditIntro = props => {
};
export default ModalCreditIntro;
/* esline-enable */