Fakultas Ilmu Komputer UI

Commit 75ad5ce9 authored by Ryo Axtonlie's avatar Ryo Axtonlie
Browse files

Merge branch 'ryo' into 'master'

remove edit button for comment

See merge request !33
parents def7e8c5 3faff4f0
......@@ -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