1
0
mirror of https://github.com/tormachris/cf-workers-status-page.git synced 2025-01-22 13:53:25 +01:00

Update monitorCard.js

This commit is contained in:
Marcello Bachechi 2021-07-22 11:57:50 -06:00 committed by Adam Janiš
parent fa9d865cc1
commit 23673587c2

View File

@ -30,9 +30,20 @@ export default function MonitorCard({ key, monitor, data }) {
</div> </div>
</div> </div>
)} )}
<a href={monitor.url} target="_blank"> {(monitor.linkable === true || monitor.linkable === undefined) ?
<div className="text-xl">{monitor.name}</div> (
</a> <a href={monitor.url} target="_blank">
<div className="text-xl">{monitor.name}</div>
</a>
)
:
(
<span>
<div className="text-xl">{monitor.name}</div>
</span>
)
}
</div> </div>
<MonitorStatusLabel kvMonitor={data} /> <MonitorStatusLabel kvMonitor={data} />
</div> </div>