Merge pull request #1037 from 190km/feat-shows-req-when-is-active

feat: shows req when is active
This commit is contained in:
Mauricio Siu
2025-01-01 19:05:47 -06:00
committed by GitHub

View File

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