-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add new car #9
Add new car #9
Conversation
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.
Required changes 📌
- Add another
TextInputField
. Check the comments for details
<FormComponent | ||
initialValues={carInitialValues} | ||
schema={CarSchema} | ||
onSubmit={handleSubmit} | ||
className="" | ||
> | ||
<TextInputField label="Car Name" name="name" placeholder="Car Name" /> | ||
<TextAreaInputField label="Description" name="description" placeholder="Description" /> | ||
<TextInputField label="Price/hr" name="pricePrHr" placeholder="Price"/> | ||
<TextInputField label="Sitting Capacity" name="sitting_capacity" placeholder="Sitting Capacity" /> | ||
<TextInputField label="Rental Duration" name="rental_duration" placeholder="Duration" /> | ||
<FormSubmitButton type="submit" className="sign-up-submit"> | ||
Create | ||
</FormSubmitButton> | ||
</FormComponent> |
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.
The form looks good! But can you also add another form text field for image input so that a user can provide the link for the car they are going to create? Update the CarSchema accordingly. 👍
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.
Everything looks great! You can merge the branch👍🎊🟢
Added a form to add new car.