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

Project React ToDo app by EmmaE #440

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

Conversation

EmmaEngvall
Copy link

No description provided.

Copy link

@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!

import TaskList from 'components/TaskList';
import tasks from 'reducers/task';
import Header from 'components/Header';
import TotalCompleteItems from 'components/TasksCompleted';

export const App = () => {

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={() =>

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}

},
addTask: (store, action) => {
store.items = [action.payload, ...store.items];
localStorage.setItem('taskList', JSON.stringify(store.items));

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*/

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*/

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';

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.


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

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