Skip to content

Conversation

@AferePreciousOnome
Copy link

@AferePreciousOnome AferePreciousOnome commented Feb 5, 2025

I have made the changes you suggested.

Copy link
Contributor

@nicostuhlfauth nicostuhlfauth left a comment

Choose a reason for hiding this comment

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

Hey @AferePreciousOnome 👋,

congrats on your first React PR! This looks quite good, I just left you a few comments.

General recommendations:

  • do not overuse props: if we always want the same behavior, we can directly create it as part of the component. If we need more flexibility later, we can always change that.
  • you could simplify your styles, for examples creating a new class containing all shared styles of the colorBoxes, like height, width, everything not related to the color.

Comment on lines 64 to 65
photos: PropTypes.arrayOf(PropTypes.string).isRequired,
studentPhotos: PropTypes.arrayOf(PropTypes.string).isRequired,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
photos: PropTypes.arrayOf(PropTypes.string).isRequired,
studentPhotos: PropTypes.arrayOf(PropTypes.string).isRequired,

-Which Include a form
-Added `.trim` to remove white spaces from input.
-Stopped submission if it contains only whitespace.
-Ensured input field reset after adding a task.
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