app/javascript/modules/EmailParliament/SearchByPostcode.js
Function SearchByPostcode
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SearchByPostcode = props => {
const [loading, setLoading] = useState(false);
const [error, setError] = useState(false);
const [postcode, setPostcode] = useState(null);
const [input, setInput] = useState('');