Skip to content

Commit

Permalink
Make tools show dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
Ochirsaikhan committed Jul 8, 2023
1 parent b3cf29b commit b3ccc2a
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions src/components/Roadmap/components/ListOfLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,25 @@ export const ListOfLinks = (props) => {
<div>
<hr></hr>
<div className={classes.resources}>
<div>
<h3>Tools</h3>
<ul>
{tools.map((tool) => {
return (
<li key={tool.title}>
<LinkToResource
icon={tool.iconType}
title={tool.title}
href={tool.href}
/>
</li>
);
})}
</ul>
</div>
{tools.length !== 0 && (
<div>
<h3>Tools</h3>
<ul>
{tools.map((tool) => {
return (
<li key={tool.title}>
<LinkToResource
icon={tool.iconType}
title={tool.title}
href={tool.href}
/>
</li>
);
})}
</ul>
</div>
)}

<div style={{ marginLeft: "auto", marginRight: "auto" }}>
{technicalTopics.length !== 0 && (
<div>
Expand Down

0 comments on commit b3ccc2a

Please sign in to comment.