Skip to content

Commit

Permalink
update for specific fields to create and add meeting notes
Browse files Browse the repository at this point in the history
  • Loading branch information
graysonsmithh committed Oct 27, 2024
1 parent 0046d51 commit 102defd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/src/pages/CreateMeeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import * as Yup from "yup"

const CreateMeeting = () => {
const initialValues = {
name: "",
description: "",
meeting: "",
notes: "",
}
const validationSchema = Yup.object().shape({
name: Yup.string().required("Name is required"),
description: Yup.string().required("Description is required"),
name: Yup.string().required("Meeting is required"),
description: Yup.string().required("Notes are required"),
})
const handleSubmit = (values: any) => {
console.log(values)
Expand All @@ -27,20 +27,20 @@ const CreateMeeting = () => {
{({ values, errors, touched, isSubmitting }) => (
<Form>
<div className="Form-group">
<label htmlFor="name">Name</label>
<label htmlFor="name">Meeting</label>
<Field
type="text"
name="name"
placeholder="Name"
name="meeting"
placeholder="Meeting"
className="Form-input-box"
/>
</div>
<div className="Form-group">
<label htmlFor="description">Description</label>
<label htmlFor="notes">Notes</label>
<Field
type="text"
name="description"
placeholder="Description"
name="notes"
placeholder="Notes"
className="Form-input-box"
/>
</div>
Expand Down

0 comments on commit 102defd

Please sign in to comment.