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 #1894

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

Conversation

MariaSnegireva
Copy link

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! The description field is not required. Screenshot 2023-10-13 at 16 40 57

Copy link

@loralevitska loralevitska left a comment

Choose a reason for hiding this comment

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

Good job! Check my comments for improvement

Comment on lines +13 to +17
const [name, setName] = useState('');
const [description, setDescription] = useState('');
const [imageUrl, setImageUrl] = useState('');
const [imdbUrl, setImdbUrl] = useState('');
const [imdbId, setImdbId] = useState('');

Choose a reason for hiding this comment

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

Could be combine into 1 state object

Comment on lines +45 to +46
if ((name === 'imgUrl' || name === 'imdbUrl')
&& value && !value.match(pattern)) {

Choose a reason for hiding this comment

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

Long expression move into variables with meaningful variable naming

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.

3 participants