fix the PR gated
This commit is contained in:
parent
effd1d38d0
commit
ca4dfec84b
4 changed files with 31 additions and 7 deletions
|
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue