From 04f5dd6415048744326822acb535f4e8a58b7072 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Fri, 29 Sep 2017 21:46:06 -0500 Subject: [PATCH] feature/fix(tests + lint): write and fix tests and lint error --- app/components/Form/Form.js | 6 +- app/components/Form/PayForm.js | 9 +- app/components/Form/RequestForm.js | 71 ++++---- app/components/Form/index.js | 2 +- app/components/PayForm/PayForm.js | 82 ---------- app/components/PayForm/PayForm.scss | 152 ------------------ app/components/PayForm/index.js | 3 - app/lnd/utils/index.js | 4 +- app/reducers/form.js | 3 - app/reducers/index.js | 2 +- app/reducers/invoice.js | 4 +- app/reducers/payform.js | 4 +- app/reducers/requestform.js | 5 +- app/routes/app/components/App.js | 14 +- app/routes/app/components/components/Nav.js | 4 +- app/routes/app/containers/AppContainer.js | 13 +- test/reducers/__snapshots__/form.spec.js.snap | 6 + test/reducers/form.spec.js | 13 +- 18 files changed, 87 insertions(+), 310 deletions(-) delete mode 100644 app/components/PayForm/PayForm.js delete mode 100644 app/components/PayForm/PayForm.scss delete mode 100644 app/components/PayForm/index.js diff --git a/app/components/Form/Form.js b/app/components/Form/Form.js index 536b6a86..dfc9476b 100644 --- a/app/components/Form/Form.js +++ b/app/components/Form/Form.js @@ -1,4 +1,4 @@ -import React, { Component } from 'react' +import React from 'react' import PropTypes from 'prop-types' import { MdClose } from 'react-icons/lib/md' @@ -10,7 +10,7 @@ import styles from './Form.scss' const FORM_TYPES = { PAY_FORM: PayForm, - REQUEST_FORM: RequestForm + REQUEST_FORM: RequestForm } const Form = ({ formType, formProps, closeForm }) => { @@ -23,7 +23,7 @@ const Form = ({ formType, formProps, closeForm }) => {
- +
diff --git a/app/components/Form/PayForm.js b/app/components/Form/PayForm.js index 1bf8fb3f..60ec9dea 100644 --- a/app/components/Form/PayForm.js +++ b/app/components/Form/PayForm.js @@ -21,10 +21,10 @@ class PayForm extends Component { render() { const { - payform: { amount, payInput, invoice }, + payform: { amount, payInput }, currency, crypto, - + isOnchain, isLn, currentAmount, @@ -40,7 +40,7 @@ class PayForm extends Component { return (
{showPayLoadingScreen && } - +