mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: improve requests
This commit is contained in:
@@ -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 />}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user