Fakultas Ilmu Komputer UI

Commit 3faff4f0 authored by ryoaxton2000's avatar ryoaxton2000
Browse files

remove edit button for comment

parent def7e8c5
......@@ -106,12 +106,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