fix the PR gated

This commit is contained in:
Yifei Hu 2024-07-10 12:05:49 +08:00
parent ca4dfec84b
commit bf170a0ad8
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ const NewsPage = () => {
<div className="flex flex-row items-center justify-center min-h-screen">
<p className="text-black/70 dark:text-white/70 text-sm">Loading news...</p>
</div>
) : (error ? (
) : error ? (
<div className="flex flex-col items-center justify-center min-h-screen">
<p className="text-red-500 text-sm mb-2">Failed to load news.</p>
<p className="text-red-500 text-xs">{error}</p>
@ -77,7 +77,7 @@ const NewsPage = () => {
))
)}
</div>
))}
)}
</div>
);
};