import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { Trans, withNamespaces } from 'react-i18next'; import Card from '../ui/Card'; 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-standard mr-2': true, 'btn btn-primary btn-standard mr-2 btn-loading': this.props.processingTestUpstream, }); const { t } = this.props; return (