refactor: improve requests

This commit is contained in:
Mauricio Siu
2025-01-01 19:05:06 -06:00
parent 198ace236b
commit 9f24f24de3

View File

@@ -94,18 +94,18 @@ export const ShowRequests = () => {
</div> </div>
</CardHeader> </CardHeader>
<CardContent> <CardContent>
{ {isActive ? (
isActive ? ( <RequestDistributionChart />
<RequestDistributionChart /> ) : (
) : ( <div className="flex items-center justify-center min-h-[25vh]">
<div className="flex items-center justify-center"> <span className="text-muted-foreground py-6">
<span className="text-muted-foreground py-6">You need to activate requests</span> You need to activate requests
</div> </span>
) </div>
} )}
</CardContent> </CardContent>
</Card> </Card>
<RequestsTable /> {isActive && <RequestsTable />}
</> </>
); );
}; };