1
0
mirror of https://github.com/tormachris/cf-workers-status-page.git synced 2024-11-23 22:45:43 +01:00

Hide description icon if no description present

This commit is contained in:
Greg Brimble 2020-11-14 14:05:20 +00:00 committed by GitHub
parent 0145fce7c4
commit 17d80914fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,9 +96,11 @@ export default function Index({
style={{ marginBottom: '8px' }}
>
<div className="ui marginless header">
<span data-tooltip={monitor.description}>
<i className="blue small info circle icon" />
</span>
{monitor.description && (
<span data-tooltip={monitor.description}>
<i className="blue small info circle icon" />
</span>
)}
<div className="content">{monitor.name}</div>
</div>
<MonitorStatusLabel