From 7b19cce0ec33065a2e4f55ad707d38344f92a6e4 Mon Sep 17 00:00:00 2001 From: Robert Brown Date: Mon, 28 Feb 2022 23:55:32 -0700 Subject: [PATCH] feat: hide delete on non-user posts --- src/components/PostContainer.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/PostContainer.tsx b/src/components/PostContainer.tsx index 1c27538..6ce98c7 100644 --- a/src/components/PostContainer.tsx +++ b/src/components/PostContainer.tsx @@ -91,9 +91,11 @@ const PostContainer: React.FC = (props: ContainerProps) => { Share - handleDelete()}> - Delete - + {user?.uid == props.postData.uid && ( + handleDelete()}> + Delete + + )}