Fakultas Ilmu Komputer UI

Commit 8ef8992f authored by Ryo Axtonlie's avatar Ryo Axtonlie
Browse files

Merge branch 'ryo' into 'master'

fix delete comment button not showing

See merge request diskuy!83
parents d444074d dc8ffd0f
......@@ -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