add empty state

This commit is contained in:
2026-01-27 21:17:52 -05:00
parent 39fe315870
commit 8f05bb99f4
2 changed files with 32 additions and 28 deletions
+31 -27
View File
@@ -49,33 +49,37 @@ export default function StatModule() {
return ( return (
<div className="border border-white border-solid rounded-lg w-full mb-4"> <div className="border border-white border-solid rounded-lg w-full mb-4">
<div className="grid grid-cols-3 gap-2"> <div className="grid grid-cols-3 gap-2">
{data?.map((v, k) => { {data && data.length > 0 && !failedFetch ? (
return ( data?.map((v, k) => {
<div key={k} className="text-center p-2 space-y-2"> return (
<img <div key={k} className="text-center p-2 space-y-2">
src={v?.image} <img
className="object-cover w-full h-[50px] object-top" src={v?.image}
/> className="object-cover w-full h-[50px] object-top"
<a />
className="hover:underline" <a
href={`https://tracker.alexav.gg/info/${v?.id}`} className="hover:underline"
target="_blank" href={`https://tracker.alexav.gg/info/${v?.id}`}
> target="_blank"
<h1 className="font-semibold">{v?.title}</h1> >
<p> <h1 className="font-semibold">{v?.title}</h1>
{" "} <p>
{v?.finished {" "}
? "finished" {v?.finished
: v?.paused ? "finished"
? "paused" : v?.paused
: v.startedOn ? "paused"
? "started" : v.startedOn
: "not started"} ? "started"
</p> : "not started"}
</a> </p>
</div> </a>
); </div>
})} );
})
) : (
<ErrorState />
)}
</div> </div>
</div> </div>
); );
+1 -1
View File
@@ -41,7 +41,7 @@ export default function App() {
<StatModule /> <StatModule />
<PictureCarousel onClick={(url) => setSelectedImage(url)} /> <PictureCarousel onClick={(url) => setSelectedImage(url)} />
<GameComponent /> <GameComponent />
<ScoreModule type={"bills"} /> <ScoreModule type={"sabres"} />
{/* <FantasyStatus /> */} {/* <FantasyStatus /> */}
</div> </div>
</div> </div>