Skip to content

Commit

Permalink
delete comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Shevchuchka committed Nov 2, 2024
1 parent 4603b13 commit c1b9036
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/components/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const Content: React.FC = () => {

<TodoList visibleTodos={visibleTodos} setFocused={setFocused} />

{/* Hide the footer if there are no todos */}
{todos.length > 0 && (
<Footer
visibleTodos={visibleTodos}
Expand Down
2 changes: 0 additions & 2 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export const Footer: React.FC<Props> = ({
{todosCount(Filter.Active)} items left
</span>

{/* Active link should have the 'selected' class */}
<nav className="filter" data-cy="Filter">
{Object.values(Filter).map(filter => (
<a
Expand All @@ -97,7 +96,6 @@ export const Footer: React.FC<Props> = ({
))}
</nav>

{/* this button should be disabled if there are no completed todos */}
<button
type="button"
className="todoapp__clear-completed"
Expand Down
2 changes: 0 additions & 2 deletions src/components/TodoList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ type Props = {
};

export const TodoList: React.FC<Props> = ({ visibleTodos, setFocused }) => {
// const { todos } = useContext(TodosContext);

return (
<section className="todoapp__main" data-cy="TodoList">
{visibleTodos.map(todo => (
Expand Down

0 comments on commit c1b9036

Please sign in to comment.