-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contact us page implemented #160
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Zzzayaan is attempting to deploy a commit to the PearAI Team on Vercel. A member of the Team first needs to authorize it. |
]; | ||
|
||
export default function ContactUs() { | ||
const [isSubmitting, setIsSubmitting] = useState(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend using the isSubmitting
status provided in formState
by react-hook-form
to avoid manually setting the update status.
Btw this is still great and needed! Will increase priority on this as we near our public launch more. Rn gonna keep this in backlog |
Description
This PR solves the need for a contact page for PearAI. It offers a clean, simple contact page with required fields to fill in, such as first name, last name, email, job title, company name, organisation size, and message to send with the form.
Related Issue
This PR solves #143
Changes Made
How to set-up the database
Create a table called
contact
with fields:first_name
,last_name
,email
,company_name
,organisation_size
,job_title
,phone_number
,message
.You will need the following policies:


Optionally, and something I'd highly recommend, is also creating a unique ID column for the table so you're able to delete rows when need be.
Screenshots
Checklist
yarn build
and build is successful