Fakultas Ilmu Komputer UI

Commit 6575fd6c authored by FadhilP's avatar FadhilP
Browse files
parents b95faacf 75ad5ce9
......@@ -104,12 +104,14 @@ export default function Post(props) {
<div className="buttonContainer">
{content.user_id == AuthService.getCurrentUserId() && (
<div>
<Button
type="button"
text="Edit"
color="none-green"
url={`thread/edit/${content.id}`}
/>
{checkType == "threads" && (
<Button
type="button"
text="Edit"
color="none-green"
url={`thread/edit/${content.id}`}
/>
)}
<button
type="button"
className="deleteButton"
......
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