Skip to content

Form movie implementation#14

Open
vcosmin2701 wants to merge 6 commits intomasterfrom
form-movie-creation
Open

Form movie implementation#14
vcosmin2701 wants to merge 6 commits intomasterfrom
form-movie-creation

Conversation

@vcosmin2701
Copy link
Copy Markdown
Collaborator

My attempt of making this form.
image
Also Yup Schema Validation added to this form
image

@vcosmin2701 vcosmin2701 requested a review from OctaFloare July 11, 2024 17:09
</div>
)}

<Field
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since all these fields are repetitive, we could extract into a separate component that could be reused

className="w-96 px-3 py-2 border border-white-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
as="select"
name="genres.id"
onChange={(e) => {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good practice for long logic like this to be extracted into a separate function

Copy link
Copy Markdown
Owner

@OctaFloare OctaFloare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work. Nice job handling the touched fields as well.

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