diff --git a/src/components/Posts.jsx b/src/components/Posts.jsx index f9b9682..798f8cf 100644 --- a/src/components/Posts.jsx +++ b/src/components/Posts.jsx @@ -7,6 +7,7 @@ import { getDocs, doc, updateDoc, + deleteDoc, query, where, orderBy, @@ -16,6 +17,7 @@ import { useAuthState } from "react-firebase-hooks/auth"; import { CgProfile } from "react-icons/cg"; import Modal from "./Modal"; import { BiSolidUpvote, BiSolidDownvote } from "react-icons/bi"; +import { MdDelete } from "react-icons/md"; import { FaReply } from "react-icons/fa"; import { categoryData } from "../data"; @@ -349,23 +351,35 @@ const Posts = (props) => { key={post.id} className="border-blue-100 border p-4 m-2 flex flex-col gap-2 rounded-md drop-shadow-md bg-white hover:shadow-xl transition duration-300 ease-in-out" > -