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 task solution #2745

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Anton777148
Copy link

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Great job on implementing the task requirements! 🎉 The core functionality is well-handled, and the form logic is correctly set up. While there are minor suggestions for improving the onChange handlers and ensuring the TextField component handles the error prop correctly, these do not impact the overall functionality. Keep up the good work and consider these improvements for future projects! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

value=""
onChange={() => {}}
value={inputState.title}
onChange={e => setInputState({ ...inputState, title: e })}

Choose a reason for hiding this comment

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

The onChange handler should extract the value from the event object. It should be onChange={e => setInputState({ ...inputState, title: e.target.value })}.

name="description"
label="Description"
value={description}
onChange={e => setDescription(e)}

Choose a reason for hiding this comment

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

The onChange handler should extract the value from the event object. It should be onChange={e => setDescription(e.target.value)}.

name="imgUrl"
label="Image URL"
value={inputState.imgUrl}
onChange={e => setInputState({ ...inputState, imgUrl: e })}

Choose a reason for hiding this comment

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

The onChange handler should extract the value from the event object. It should be onChange={e => setInputState({ ...inputState, imgUrl: e.target.value })}.

name="imdbUrl"
label="Imdb URL"
value={inputState.imdbUrl}
onChange={e => setInputState({ ...inputState, imdbUrl: e })}

Choose a reason for hiding this comment

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

The onChange handler should extract the value from the event object. It should be onChange={e => setInputState({ ...inputState, imdbUrl: e.target.value })}.

name="imdbId"
label="Imdb ID"
value={inputState.imdbId}
onChange={e => setInputState({ ...inputState, imdbId: e })}

Choose a reason for hiding this comment

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

The onChange handler should extract the value from the event object. It should be onChange={e => setInputState({ ...inputState, imdbId: e.target.value })}.

value={inputState.imdbId}
onChange={e => setInputState({ ...inputState, imdbId: e })}
onBlur={() => setBlurredFields({ ...blurredFields, imdbId: true })}
error={imdbIdError}

Choose a reason for hiding this comment

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

Ensure that the TextField component can handle the error prop correctly. If it expects a boolean, this is fine, but if it expects a string or a different type, adjustments may be needed.

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Hi, you need to fix all comments by AI

Copy link

@anastasiiavorobiova anastasiiavorobiova left a comment

Choose a reason for hiding this comment

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

Great work!
Consider clearing the description field after the submit
Screenshot 2025-02-07 at 13 00 37

Copy link

@VitaliyBondarenko1982 VitaliyBondarenko1982 left a comment

Choose a reason for hiding this comment

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

Looks good

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.

5 participants