Skip to content

Commit 6b74b22

Browse files
committed
feat(board/promoted_attributes): format URL
1 parent 0087484 commit 6b74b22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ function formatLabelValue(attr: AttributeWithDefinitions): ComponentChildren {
7272
}
7373
case "boolean":
7474
return <><Icon icon={value === "true" ? "bx bx-check-square" : "bx bx-square"} /> <strong>{attr.friendlyName}</strong></>;
75+
case "url":
76+
return <><a href={value} target="_blank" rel="noopener noreferrer">{attr.friendlyName}</a></>;
7577
case "text":
7678
default:
7779
return <><strong>{attr.friendlyName}:</strong> {value}</>;

0 commit comments

Comments
 (0)