Skip to content

Commit

Permalink
comments deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
HaniaNassalska committed Sep 22, 2023
1 parent 6588897 commit c5f6943
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const App: React.FC = () => {
<Input />
{todos && <TaskList />}

{/* Hide the footer if there are no todos */}
{todos.length !== 0
&& (
<Footer />
Expand Down
3 changes: 0 additions & 3 deletions src/components/CaseOfErrorMessage/CaseOfErrorMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

import { useTodo } from '../../provider/todoProvider';

/* Notification is shown in case of any error */
/* Add the 'hidden' class to hide the message smoothly */

export const CaseOfErrorMessage = () => {
const { error, closeErrorMessage } = useTodo();

Expand Down
2 changes: 0 additions & 2 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const Footer = () => {
return (
<footer className="todoapp__footer">
<TodoCount />
{/* Active filter should have a 'selected' class */}
<nav className="filter">
<a
href="#/"
Expand Down Expand Up @@ -51,7 +50,6 @@ export const Footer = () => {
</a>
</nav>

{/* don't show this button if there are no completed todos */}
<button
type="button"
className="todoapp__clear-completed"
Expand Down
2 changes: 0 additions & 2 deletions src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ export const Input = () => {

return (
<header className="todoapp__header">
{/* this button is active only if there are some active todos */}
<button
type="button"
className={allTodosAreActive
? 'todoapp__toggle-all active' : 'todoapp__toggle-all'}
onClick={() => toggleActiveTodo()}
/>

{/* Add a todo on form submit */}
<form onSubmit={addNewTodo}>
<input
type="text"
Expand Down

0 comments on commit c5f6943

Please sign in to comment.