fix: ui tweaks and fixes (#134)

This commit is contained in:
Gabe Farrell 2026-01-13 23:25:31 -05:00 committed by GitHub
parent c2a0987946
commit 288d04d714
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 40 additions and 27 deletions

View file

@ -7,10 +7,12 @@ export default function AllTimeStats() {
queryFn: ({ queryKey }) => getStats(queryKey[1]),
});
const header = "All time stats";
if (isPending) {
return (
<div className="w-[200px]">
<h3>All Time Stats</h3>
<h3>{header}</h3>
<p>Loading...</p>
</div>
);
@ -18,7 +20,7 @@ export default function AllTimeStats() {
return (
<>
<div>
<h3>All Time Stats</h3>
<h3>{header}</h3>
<p className="error">Error: {error.message}</p>
</div>
</>
@ -29,7 +31,7 @@ export default function AllTimeStats() {
return (
<div>
<h3>All Time Stats</h3>
<h3>{header}</h3>
<div>
<span
className={numberClasses}