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"> <div className="flex items-center justify-center min-h-[25vh]">
<span className="text-muted-foreground py-6">You need to activate requests</span> <span className="text-muted-foreground py-6">
You need to activate requests
</span>
</div> </div>
) )}
}
</CardContent> </CardContent>
</Card> </Card>
<RequestsTable /> {isActive && <RequestsTable />}
</> </>
); );
}; };