Skip to content
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

Merged
merged 3 commits into from
Dec 10, 2023
Merged

Add new car #9

merged 3 commits into from
Dec 10, 2023

Conversation

Simpleshaikh1
Copy link
Collaborator

Added a form to add new car.

Copy link
Owner

@tan12082001 tan12082001 left a 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

Comment on lines 18 to 32
<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>
Copy link
Owner

@tan12082001 tan12082001 Dec 10, 2023

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. 👍☺️

Copy link
Owner

@tan12082001 tan12082001 left a 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👍🎊🟢

@tan12082001 tan12082001 merged commit 7fd31a5 into dev Dec 10, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants