We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3f500c commit fb29316Copy full SHA for fb29316
packages/ui-components/Common/ChangeHistory/index.tsx
@@ -47,17 +47,20 @@ const ChangeHistory: FC<ChangeHistoryProps> = ({
47
</>
48
);
49
50
- return (
51
- <a
52
- key={index}
53
- href={change.url}
54
- className={styles.dropdownItem}
55
- role="menuitem"
56
- tabIndex={0}
57
- aria-label={`${change.label}: ${change.versions.join(', ')}`}
58
- >
+ const itemProps = {
+ key: index,
+ className: styles.dropdownItem,
+ role: 'menuitem',
+ tabIndex: 0,
+ ['aria-label']: `${change.label}: ${change.versions.join(', ')}`,
+ };
+
+ return change.url ? (
59
+ <a {...itemProps} href={change.url}>
60
{content}
61
</a>
62
+ ) : (
63
+ <div {...itemProps}>{content}</div>
64
65
})}
66
</div>
0 commit comments