Skip to content

Commit 117944c

Browse files
Alex KrawiecAlex Krawiec
authored andcommitted
Fix linting errosr
1 parent ba5af21 commit 117944c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/components/changelog/docsChangelog.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import React from 'react';
2+
13
interface ChangelogEntry {
4+
author: string;
5+
description: string;
26
id: string;
7+
publishedAt: string;
38
title: string;
4-
description: string;
59
url: string;
6-
publishedAt: string;
7-
author: string;
810
filesChanged?: {
911
added: string[];
1012
modified: string[];
@@ -15,7 +17,7 @@ interface ChangelogEntry {
1517
async function getChangelogEntries(): Promise<ChangelogEntry[]> {
1618
try {
1719
const res = await fetch('https://sentry-content-dashboard.sentry.dev/api/docs', {
18-
next: { revalidate: 3600 }, // Cache for 1 hour
20+
next: {revalidate: 3600}, // Cache for 1 hour
1921
});
2022

2123
if (!res.ok) {
@@ -24,7 +26,7 @@ async function getChangelogEntries(): Promise<ChangelogEntry[]> {
2426

2527
return res.json();
2628
} catch (error) {
27-
console.error('Error fetching changelog:', error);
29+
// Error fetching changelog - return empty array
2830
return [];
2931
}
3032
}
@@ -77,10 +79,10 @@ export async function DocsChangelog() {
7779
<span></span>
7880
<span>by {entry.author}</span>
7981
{totalFiles > 0 && (
80-
<>
82+
<React.Fragment>
8183
<span></span>
8284
<span>{totalFiles} file{totalFiles !== 1 ? 's' : ''} changed</span>
83-
</>
85+
</React.Fragment>
8486
)}
8587
</div>
8688
</header>

0 commit comments

Comments
 (0)