Fakultas Ilmu Komputer UI

Commit 1c5563d1 authored by FadhilP's avatar FadhilP
Browse files

remove warnings for key prop

parent 712eace7
...@@ -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>
); );
......
...@@ -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' }}
> >
......
...@@ -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' }}
> >
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment