We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7d134b commit bb20fc0Copy full SHA for bb20fc0
docs/src/components/timeline.tsx
@@ -7,7 +7,7 @@ export interface Item {
7
icon: string;
8
title: string;
9
description?: string;
10
- release: string;
+ release?: string;
11
tag?: string;
12
date: Date;
13
dateType: DateType;
@@ -70,10 +70,10 @@ export default function Timeline({ items }: Props): JSX.Element {
70
target="_blank"
71
rel="noopener"
72
>
73
- [{item.release}]{' '}
+ [{item.release ?? item.tag}]{' '}
74
</a>
75
) : (
76
- <span>[{item.release}]</span>
+ item.release && <span>[{item.release}]</span>
77
)}
78
</span>
79
</div>
0 commit comments