Skip to content

Commit

Permalink
added delete all component and style
Browse files Browse the repository at this point in the history
  • Loading branch information
eyekavya committed Mar 24, 2023
1 parent f91e0cc commit 3a6c3fc
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import React from "react";
import Heading from "./components/Heading/Heading";
import AddTodo from "./components/AddTodo/AddTodo";
import FilterTodo from "./components/FilterTodo/FilterTodo";
import DeleteAllTodo from "./components/DeleteAllTodo/DeleteAllTodo";

function App() {
return (
Expand All @@ -12,6 +13,7 @@ function App() {
<div className="flex-basic">
<AddTodo />
<FilterTodo />
<DeleteAllTodo />
</div>
</>
);
Expand Down
14 changes: 14 additions & 0 deletions src/components/DeleteAllTodo/DeleteAllTodo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";
import { StyledDeleteAllTodo } from "./StyledDeleteAllTodo";

function DeleteAllTodo() {
return (
<StyledDeleteAllTodo>
<button class="dlt-btn dlt-all-btn">
<i class="fas fa-trash"></i>
</button>
</StyledDeleteAllTodo>
);
}

export default DeleteAllTodo;
24 changes: 24 additions & 0 deletions src/components/DeleteAllTodo/StyledDeleteAllTodo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import styled from "styled-components";

export const StyledDeleteAllTodo = styled.section`
.dlt-btn {
background-color: #ff6f47;
color: #fff;
border: none;
padding: 1rem;
font-size: 1rem;
cursor: pointer;
}
.dlt-all-btn {
height: 38px;
text-align: center;
font-size: 14px;
padding-top: 0.8rem;
cursor: pointer;
}
.fa-trash {
pointer-events: none;
}
`;

0 comments on commit 3a6c3fc

Please sign in to comment.