Skip to content

Project React ToDo app by EmmaE#440

Open
EmmaEngvall wants to merge 10 commits intoTechnigo:masterfrom
EmmaEngvall:master
Open

Project React ToDo app by EmmaE#440
EmmaEngvall wants to merge 10 commits intoTechnigo:masterfrom
EmmaEngvall:master

Conversation

@EmmaEngvall
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@MalinSkill MalinSkill 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! The styling looks very promising, I look forward to see the finished version.
The checkboxes and count works fine, until you refresh the page. I added one suggestion to try for the checkboxes. Hope it works!

Comment thread code/src/App.js
import Header from 'components/Header';
import TotalCompleteItems from 'components/TasksCompleted';

export const App = () => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice and clean App

</button>
<label htmlFor={`task_with_id${singleTask.id}`}>
Task completed
<input id={`task_with_id${singleTask.id}`} type="checkbox" value={singleTask.isDone} onChange={() =>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I noticed that after refreshing the page. The completed count and checkboxes are not behaving correct. I think it can be a good idea to change value={singleTask.isDone} to checked={singleTask.isDone}

Comment thread code/src/reducers/task.js
},
addTask: (store, action) => {
store.items = [action.payload, ...store.items];
localStorage.setItem('taskList', JSON.stringify(store.items));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice feature with the local storage!

@@ -0,0 +1,45 @@
/*eslint-disable*/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great structure of the code, easy to follow and understand

Comment on lines +18 to +20
/*tasks = useSelector(state => state.tasks)
const completedTasks = tasks.filter(singleTask => singleTask.isDone)
completedTasks.length*/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe clean up this now when you moved it into it's own component.

@@ -0,0 +1,15 @@
import React from 'react';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good idea to have also this as its own component. Makes it easy to find exactly what you are looking for quick if you need to do updates/changes.

Comment thread README.md
## View it live

Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about.
Ehttps://todo-app-emmaeng.netlify.app/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

a little typo sneaked in here

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