diff --git a/.eslintrc b/.eslintrc index 096e0b74..be435af2 100644 --- a/.eslintrc +++ b/.eslintrc @@ -17,6 +17,14 @@ "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], "jsx-a11y/no-static-element-interactions": 0, "jsx-a11y/no-noninteractive-element-interactions": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/label-has-for": [ 2, { + "components": [ "Label" ], + "required": { + "every": [ "id" ] + }, + "allowChildren": false + }], "react/no-array-index-key": 0, "react/forbid-prop-types": 0, "camelcase": 0, diff --git a/app/components/ChannelForm/ChannelForm.js b/app/components/ChannelForm/ChannelForm.js deleted file mode 100644 index 5b25cde0..00000000 --- a/app/components/ChannelForm/ChannelForm.js +++ /dev/null @@ -1,90 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' -import ReactModal from 'react-modal' - -import { FaClose } from 'react-icons/lib/fa' - -import StepOne from './StepOne' -import StepTwo from './StepTwo' -import StepThree from './StepThree' -import StepFour from './StepFour' -import Footer from './Footer' - -import styles from './ChannelForm.scss' - -const ChannelForm = ({ - channelform, - openChannel, - closeChannelForm, - changeStep, - setNodeKey, - setLocalAmount, - setPushAmount, - channelFormHeader, - channelFormProgress, - stepTwoIsValid, - peers -}) => { - const renderStep = () => { - const { step } = channelform - - switch (step) { - case 1: - return - case 2: - return - case 3: - return - default: - return - } - } - - return ( - document.body} - className={styles.modal} - > -
- -
- -
-

{channelFormHeader}

-
-
- -
- {renderStep()} -
- -