//@flow import React from "react"; import { translate } from "react-i18next"; import { RemoveEntryOfTableButton } from "../../../components/buttons"; type Props = { proxyExcludes: string[], t: string => string, onChange: (boolean, any, string) => void, disabled: boolean }; type State = {}; class ProxyExcludesTable extends React.Component { render() { const { t } = this.props; return (
{this.props.proxyExcludes.map(excludes => { return ( ); })}
{excludes}
); } removeEntry = (excludename: string) => { const newExcludes = this.props.proxyExcludes.filter( name => name !== excludename ); this.props.onChange(true, newExcludes, "proxyExcludes"); }; } export default translate("config")(ProxyExcludesTable);