Skip to content

Commit

Permalink
fix: delete empty tags
Browse files Browse the repository at this point in the history
  • Loading branch information
winatungmiharja committed Sep 17, 2021
1 parent 446d30e commit 3a53135
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { useState } from "react";

import CompletedTodoWrapper from "./view/TodoWrapper/CompletedTodoWrapper";
import TodoWrapper from "./view/TodoWrapper/TodoWrapper";
import Background from "./view/Background/Background";
import Sidebar from "./view/Sidebar/Sidebar";
import Header from "./view/Header/Header";

import { useType } from "./data/Type";
import { useTodo } from "./data/Todo";
import status from "./data/Status";
Expand All @@ -16,15 +18,13 @@ const App = () => {
const changeFilter = (item) => {
setFilter(item);
};

const filterData = (data, option) => {
if (option === "See All") {
return data;
} else {
return data.filter((item) => item.type === option);
}
};

const todoData = filterData(data["todo"], filter);
const completedData = filterData(data["completed"], filter);

Expand Down
1 change: 0 additions & 1 deletion src/view/TodoCard/EditedTodoCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const EditedTodoCard = ({ item, setIsEdited, status }) => {
id="edit-desc"
setChange={(value) => setChange("description", value)}
/>
<p></p>
<div class="todo-card-wrapper-button">
<button disabled="disabled">{item.type}</button>
<div className="button-group">
Expand Down

0 comments on commit 3a53135

Please sign in to comment.