Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Functional Programming
Diskuy-Frontend
Commits
3faff4f0
Commit
3faff4f0
authored
Feb 22, 2021
by
ryoaxton2000
Browse files
remove edit button for comment
parent
def7e8c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/thread/Post.jsx
View file @
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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment