<ButtonbsStyle="primary"type="submit"disabled={isSubmitting||!!Object.keys(errors).length}>{!isSubmitting?'Submit':'Submitting to the Blockchain - (this may take awhile)'}</Button>
</form>
)
constUpdateController=withFormik({
mapPropsToValues:props=>({newAddress:''}),
asyncvalidate(values){
const{utils:{isAddress}}=web3;
const{newAddress}=values;
consterrors={};
if(!isAddress(newAddress))errors.newAddress='Please enter a valid address'