const {register, setValue , setFocus , watch, handleSubmit, formState: {errors, isSubmitting}} = useForm();
<form onSubmit={firstEnter ? handleSubmit(setNewPassord) : handleSubmit(authUserFunc)}>
...
<Button width='100%' colorScheme='#e4e9eb' size='lg' variant='outline' type='submit' isLoading={isSubmitting}>Войти</Button>
</form>
export const compilePug = () => {
return gulp.src(PATHS.pug)
.pipe(pug({
pretty: true,
data: {
env: process.env.NODE_ENV,
},
}))
.pipe(gulp.dest(DEST_FOLDER));
}
function wpcf7_send_sms ($contact_form)
{
...
curl_close($ch);
return $contact_form;
}