import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Card from '../ui/Card'; export default class Upstream extends Component { handleChange = (e) => { const { value } = e.currentTarget; this.props.handleUpstreamChange(value); }; handleSubmit = (e) => { e.preventDefault(); this.props.handleUpstreamSubmit(); }; handleTest = () => { this.props.handleUpstreamTest(); } render() { const testButtonClass = classnames({ 'btn btn-primary btn-standart mr-2': true, 'btn btn-primary btn-standart mr-2 btn-loading': this.props.processingTestUpstream, }); return (