tem contact page
This commit is contained in:
+1
-2
@@ -6,8 +6,7 @@
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next dev",
|
||||
"start_real": "next start",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"sass": "sass --watch public/assets/scss/main.scss:public/assets/css/main.css"
|
||||
},
|
||||
|
||||
+8
-5
@@ -1,7 +1,7 @@
|
||||
import {useMutation} from '@tanstack/react-query';
|
||||
import Layout from "../components/layout/Layout"
|
||||
import Link from "next/link"
|
||||
import {Form, Formik} from 'formik';
|
||||
//import {Form, Formik} from 'formik';
|
||||
import * as Yup from "yup";
|
||||
|
||||
export default function Home() {
|
||||
@@ -78,14 +78,16 @@ export default function Home() {
|
||||
|
||||
<div className="col-md-6 col-lg-6">
|
||||
<div className="form-holder">
|
||||
<Formik
|
||||
{/*<Formik*/}
|
||||
<div
|
||||
initialValues={initialValues}
|
||||
validationSchema={validationSchema}
|
||||
onSubmit={handleContactMutation}
|
||||
>
|
||||
{(props) => {
|
||||
return (
|
||||
<Form name="contactform" className="row contact-form">
|
||||
// <Form name="contactform" className="row contact-form">
|
||||
<div name="contactform" className="row contact-form">
|
||||
{/* Form Select */}
|
||||
<div className="col-md-12 input-subject">
|
||||
<p className="p-lg">This question is
|
||||
@@ -167,10 +169,11 @@ export default function Home() {
|
||||
<div className="col-lg-12 contact-form-msg">
|
||||
<span className="loading"/>
|
||||
</div>
|
||||
</Form>
|
||||
</div>
|
||||
);
|
||||
}}
|
||||
</Formik>
|
||||
{/*</Formik>*/}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user