Skip to content

Commit

Permalink
New Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vovan4ik1 committed Oct 22, 2024
1 parent 4692d9f commit aafc647
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import { Todo } from '../../types/Todo';
import { Error } from '../../types/Error';
import cn from 'classnames';
import classNames from 'classnames';
import { USER_ID, addTodo, updateTodo } from '../../api/todos';

type Props = {
todos: Todo[];
completedTodos: Todo[];
setTodos: React.Dispatch<React.SetStateAction<Todo[]>>;
completedTodos: Todo[];
textField: React.RefObject<HTMLInputElement>;
setErrorMessage: React.Dispatch<React.SetStateAction<Error>>;
query: string;
Expand Down Expand Up @@ -105,11 +105,11 @@ export const Header: React.FC<Props> = ({
};

return (
<header className="todoappheader">
<header className="todoapp__header">
{todos.length > 0 && (
<button
type="button"
className={cn('todoapptoggle-all', {
className={classNames('todoapp__toggle-all', {
active: todos.length === completedTodos.length,
})}
data-cy="ToggleAllButton"
Expand Down

0 comments on commit aafc647

Please sign in to comment.