Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects

remove edit button for comment

Merged Ryo Axtonlie requested to merge ryo into master
1 file
+ 8
6
Compare changes
  • Side-by-side
  • Inline
@@ -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"
Loading