display resource type in info card

This commit is contained in:
miloschwartz
2026-06-29 10:45:38 -04:00
parent 04d4e298e8
commit 31725eb3cc

View File

@@ -90,7 +90,11 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) {
</InfoSectionTitle>
<InfoSectionContent>
<span className="inline-flex items-center">
{resource.ssl ? "HTTPS" : "HTTP"}
{resource.mode == "http"
? resource.ssl
? "HTTPS"
: "HTTP"
: resource.mode?.toUpperCase()}
</span>
</InfoSectionContent>
</InfoSection>