ts type and ui bug fixes

This commit is contained in:
lyc8503 committed 2024-03-18 16:21:28 +08:00
1 parent 5db2013f65
commit 904e0bc49b
4 files changed
+16 -13

No files matched your search

+2 -3
View File
@@ -43,9 +43,8 @@ export default function MonitorDetail({
// Conditionally render monitor name with or without hyperlink based on monitor.url presence
const monitorNameElement = (
<Text mt="sm" fw={700} style={{ display: 'inline-flex', alignItems: 'center' }}>
{statusIcon} {monitor.name}
{monitor.url ? (
<a href={monitor.url} style={{ display: 'inline-flex', alignItems: 'center', color: 'inherit', textDecoration: 'none' }}>
{monitor.statusPageLink ? (
<a href={monitor.statusPageLink} style={{ display: 'inline-flex', alignItems: 'center', color: 'inherit', textDecoration: 'none' }}>
{statusIcon} {monitor.name}
</a>
) : (