From 0c1151ce3e22e9e41248bfc1a17a0c9dd91a5773 Mon Sep 17 00:00:00 2001
From: JP Rodrigues <70jprodrigues@gmail.com>
Date: Wed, 26 May 2021 02:03:23 -0300
Subject: [PATCH] Add delete dataset option #7
---
src/assets/trash.svg | 7 ++
src/components/DeleteModal/index.js | 44 +++++++++++++
src/components/DeleteModal/style.sass | 16 +++++
src/components/Header/index.js | 3 +-
src/components/Suitable/index.js | 31 +++++----
src/components/Suitable/style.sass | 7 +-
src/pages/home/index.js | 94 ++++++++++++++++++++++++++-
7 files changed, 182 insertions(+), 20 deletions(-)
create mode 100644 src/assets/trash.svg
create mode 100644 src/components/DeleteModal/index.js
create mode 100644 src/components/DeleteModal/style.sass
diff --git a/src/assets/trash.svg b/src/assets/trash.svg
new file mode 100644
index 0000000..4676599
--- /dev/null
+++ b/src/assets/trash.svg
@@ -0,0 +1,7 @@
+
diff --git a/src/components/DeleteModal/index.js b/src/components/DeleteModal/index.js
new file mode 100644
index 0000000..318a2d2
--- /dev/null
+++ b/src/components/DeleteModal/index.js
@@ -0,0 +1,44 @@
+import { Component } from "react";
+import { withRouter } from "react-router-dom";
+import Modal from "../Modal";
+import "./style.sass";
+import { Context } from "../../store";
+
+import Btn from "../Btn";
+
+class DeleteModal extends Component {
+ static contextType = Context;
+
+ render() {
+ const name = localStorage.getItem("name");
+ return (
+ Are you sure you want to remove this dataset?