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) {
onChange={handlePageChange}
itemClass="page-item"
linkClass="page-link"
hideNavigation="false"
hideNavigation={false}
/>
</div>
);
......
......@@ -6,6 +6,7 @@ export default function ThreadList(props) {
<div className="list_threads">
{props.thread.map((value) => (
<Link
key={value.id}
to={`/topic/${value.topic_name}/${value.id}/page/1`}
style={{ textDecoration: 'none' }}
>
......
......@@ -29,6 +29,7 @@ export default function TopicList(props) {
<div className="topics">
{topics.map((value) => (
<Link
key={value.name}
to={`topic/${value.name}/page/1`}
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