Fakultas Ilmu Komputer UI

Commit c8de2eef authored by Jonathan Chandra's avatar Jonathan Chandra
Browse files

edit TopicList.jsx

parent 184a4303
......@@ -28,24 +28,31 @@ export default function TopicList(props) {
<Button text="Create Topic" color="orange" url="create/topic" />
)}
</div>
<div className="topics">
<div className="topicCards">
{topics.map((value) => (
<div className="topicCardContainer">
<Link
to={`topic/${value.name}/page/1`}
style={{ textDecoration: 'none' }}
>
<div className="topicCard">
<div id="threadCardHeader">
<h2 id="judul">{value.name}</h2>
{topics.length == 0 && (
<div className="noTopic">
<p>There is no topic yet.</p>
</div>
)}
{topics.length != 0 && (
<div className="topics">
<div className="topicCards">
{topics.map((value) => (
<div className="topicCardContainer">
<Link
to={`topic/${value.name}/page/1`}
style={{ textDecoration: 'none' }}
>
<div className="topicCard">
<div id="threadCardHeader">
<h2 id="judul">{value.name}</h2>
</div>
</div>
</div>
</Link>
</div>
))}
</Link>
</div>
))}
</div>
</div>
</div>
)}
</div>
);
}
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