mirror of
https://github.com/gabehf/Koito.git
synced 2026-04-23 04:21:51 -07:00
ui tweaks
This commit is contained in:
parent
6e7b4e0522
commit
a13ed8718e
7 changed files with 40 additions and 27 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue