Skip to content

Commit

Permalink
Update monitorCard.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotkid authored and eidam committed Jul 23, 2021
1 parent fa9d865 commit 2367358
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/components/monitorCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,20 @@ export default function MonitorCard({ key, monitor, data }) {
</div>
</div>
)}
<a href={monitor.url} target="_blank">
<div className="text-xl">{monitor.name}</div>
</a>
{(monitor.linkable === true || monitor.linkable === undefined) ?
(
<a href={monitor.url} target="_blank">
<div className="text-xl">{monitor.name}</div>
</a>
)
:
(
<span>
<div className="text-xl">{monitor.name}</div>
</span>
)
}

</div>
<MonitorStatusLabel kvMonitor={data} />
</div>
Expand Down

0 comments on commit 2367358

Please sign in to comment.