Fakultas Ilmu Komputer UI

Commit dc8ffd0f authored by ryoaxton2000's avatar ryoaxton2000
Browse files

fix delete comment button not showing

parent d444074d
......@@ -64,14 +64,17 @@ export default function Post(props){
</div>
</div>
{props.isUsersThread && (
<div id="headerButton">
<div className="buttonContainer">
<div id="headerButton">
<div className="buttonContainer">
{props.isUsersThread && (
<Button type="button" text="Edit" color="none-green" url={`thread/edit/${props.id}`} />
)}
{props.user_id == AuthService.getCurrentUserId() && (
<button type="button" className="deleteButton" onClick={deletePost}>Delete</button>
</div>
)}
</div>
)}
</div>
</div>
<div id="postContent">
{props.type == "thread" && (
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment