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

copy src folder from add and delete task #791

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

Conversation

vitalii-fedusov
Copy link

Copy link

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

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

try to re-deploy your link

Copy link

@lerastarynets lerastarynets 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 overall! Left a few comments to make your code more advanced)

src/App.tsx Outdated

let updatingTodo = [...todos];

if (activeTodo.length > 0) {

Choose a reason for hiding this comment

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

Suggested change
if (activeTodo.length > 0) {
if (!!activeTodo.length) {

Copy link
Author

Choose a reason for hiding this comment

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

image
i catch this error with using !!activeTodo.length

src/App.tsx Outdated Show resolved Hide resolved
src/components/Footer/Footer.tsx Outdated Show resolved Hide resolved
updatedTitle,
setUpdatedTitle = () => { },
setSelectedId = () => { },
}) => {

Choose a reason for hiding this comment

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

jfyi, it's bad practice to have this ammount of states/props, you should consider using context for such cases

src/components/Section/Section.tsx Show resolved Hide resolved
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