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
6575fd6c
Commit
6575fd6c
authored
Feb 22, 2021
by
FadhilP
Browse files
Merge branch 'master' of
https://gitlab.cs.ui.ac.id/functional-programming/diskuy-frontend
parents
b95faacf
75ad5ce9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/thread/Post.jsx
View file @
6575fd6c
...
...
@@ -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"
...
...
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