We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab769c8 commit e4bd416Copy full SHA for e4bd416
src/components/PostContainer.tsx
@@ -62,9 +62,11 @@ const PostContainer: React.FC<ContainerProps> = (props: ContainerProps) => {
62
<IonItem className="item">
63
<IonLabel>Share</IonLabel> <IonIcon className="stickRight" icon={share}></IonIcon>
64
</IonItem>
65
- <IonItem onClick={() => handleDelete()}>
66
- <IonLabel>Delete</IonLabel> <IonIcon className="stickRight" icon={trash}></IonIcon>
67
- </IonItem>
+ {user?.uid == props.postData.uid && (
+ <IonItem onClick={() => handleDelete()}>
+ <IonLabel>Delete</IonLabel> <IonIcon className="stickRight" icon={trash}></IonIcon>
68
+ </IonItem>
69
+ )}
70
</IonList>
71
</IonPopover>
72
<IonIcon
0 commit comments