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
1c5563d1
Commit
1c5563d1
authored
Feb 22, 2021
by
FadhilP
Browse files
remove warnings for key prop
parent
712eace7
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/components/thread/Pagination.jsx
View file @
1c5563d1
...
@@ -21,7 +21,7 @@ export default function Pagination(props) {
...
@@ -21,7 +21,7 @@ export default function Pagination(props) {
onChange
=
{
handlePageChange
}
onChange
=
{
handlePageChange
}
itemClass
=
"page-item"
itemClass
=
"page-item"
linkClass
=
"page-link"
linkClass
=
"page-link"
hideNavigation
=
"
false
"
hideNavigation
=
{
false
}
/>
/>
</
div
>
</
div
>
);
);
...
...
src/components/thread/ThreadList.jsx
View file @
1c5563d1
...
@@ -6,6 +6,7 @@ export default function ThreadList(props) {
...
@@ -6,6 +6,7 @@ export default function ThreadList(props) {
<
div
className
=
"list_threads"
>
<
div
className
=
"list_threads"
>
{
props
.
thread
.
map
((
value
)
=>
(
{
props
.
thread
.
map
((
value
)
=>
(
<
Link
<
Link
key
=
{
value
.
id
}
to
=
{
`/topic/
${
value
.
topic_name
}
/
${
value
.
id
}
/page/1`
}
to
=
{
`/topic/
${
value
.
topic_name
}
/
${
value
.
id
}
/page/1`
}
style
=
{
{
textDecoration
:
'
none
'
}
}
style
=
{
{
textDecoration
:
'
none
'
}
}
>
>
...
...
src/components/topic/TopicList.jsx
View file @
1c5563d1
...
@@ -29,6 +29,7 @@ export default function TopicList(props) {
...
@@ -29,6 +29,7 @@ export default function TopicList(props) {
<
div
className
=
"topics"
>
<
div
className
=
"topics"
>
{
topics
.
map
((
value
)
=>
(
{
topics
.
map
((
value
)
=>
(
<
Link
<
Link
key
=
{
value
.
name
}
to
=
{
`topic/
${
value
.
name
}
/page/1`
}
to
=
{
`topic/
${
value
.
name
}
/page/1`
}
style
=
{
{
textDecoration
:
'
none
'
}
}
style
=
{
{
textDecoration
:
'
none
'
}
}
>
>
...
...
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