Fakultas Ilmu Komputer UI

Commit 08d97d94 authored by FadhilP's avatar FadhilP
Browse files

Merge branch 'master' of https://gitlab.cs.ui.ac.id/functional-programming/diskuy into fadhil

parents 9f6d1314 8ef8992f
......@@ -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