Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Functional Programming
Diskuy-Frontend
Commits
8038ba9b
Commit
8038ba9b
authored
Feb 22, 2021
by
FadhilP
Browse files
refactor
parent
ce4c227a
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/components/thread/Post.jsx
View file @
8038ba9b
...
...
@@ -130,11 +130,7 @@ export default function Post(props) {
<
div
className
=
"likeSection"
>
{
loggedIn
&&
(
<
button
className
=
"likeButton"
onClick
=
{
handleLike
}
>
{
isLiked
?
(
<
i
className
=
"far fa-thumbs-up active"
/>
)
:
(
<
i
className
=
"far fa-thumbs-up inactive"
/>
)
}
<
i
className
=
{
`far fa-thumbs-up
${
isLiked
?
'
active
'
:
'
inactive
'
}
`
}
/>
</
button
>
)
}
<
div
className
=
"pointContainer"
>
...
...
src/components/topic/CreateTopicForm.jsx
View file @
8038ba9b
/* eslint-disable eqeqeq */
import
axios
from
'
axios
'
;
import
React
,
{
useState
}
from
'
react
'
;
import
{
useInput
}
from
'
../../helpers/hooks/input-hook
'
;
...
...
src/components/topic/Topic.jsx
View file @
8038ba9b
/* eslint-disable eqeqeq */
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
axios
from
'
axios
'
;
import
ThreadList
from
'
../thread/ThreadList
'
;
...
...
src/components/topic/TopicList.jsx
View file @
8038ba9b
/* eslint-disable eqeqeq */
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
axios
from
'
axios
'
;
import
{
Link
}
from
'
react-router-dom
'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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