Remove the connect page button from the dashboard view

Removes the "Connect page" button and its associated import from the managed-pages component.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/TXBOLMj
This commit is contained in:
michaelschal committed 2025-10-08 14:10:24 +00:00
1 parent 9f8b6fce12
commit 2ed6dd9de2
1 file changed
+11 -25
+11 -25
View File
@@ -1,6 +1,5 @@
import { Button } from "@/components/ui/button";
import { useQuery } from "@tanstack/react-query"; import { useQuery } from "@tanstack/react-query";
import { Plus, Users } from "lucide-react"; import { Users } from "lucide-react";
import { SiFacebook, SiInstagram } from "react-icons/si"; import { SiFacebook, SiInstagram } from "react-icons/si";
export default function ManagedPages() { export default function ManagedPages() {
@@ -24,25 +23,16 @@ export default function ManagedPages() {
return ( return (
<div className="bg-card rounded-2xl border border-border/50 overflow-hidden shadow-lg"> <div className="bg-card rounded-2xl border border-border/50 overflow-hidden shadow-lg">
<div className="border-b border-border/50 p-6 bg-gradient-to-r from-primary/5 to-secondary/5"> <div className="border-b border-border/50 p-6 bg-gradient-to-r from-primary/5 to-secondary/5">
<div className="flex items-center justify-between"> <div className="flex items-center gap-4">
<div className="flex items-center gap-4"> <div className="w-12 h-12 rounded-xl bg-gradient-to-br from-primary to-secondary flex items-center justify-center shadow-lg">
<div className="w-12 h-12 rounded-xl bg-gradient-to-br from-primary to-secondary flex items-center justify-center shadow-lg"> <Users className="text-white w-6 h-6" />
<Users className="text-white w-6 h-6" /> </div>
</div> <div>
<div> <h3 className="text-lg font-semibold text-foreground">Pages gérées</h3>
<h3 className="text-lg font-semibold text-foreground">Pages gérées</h3> <p className="text-sm text-muted-foreground">
<p className="text-sm text-muted-foreground"> {(pages as any[])?.length || 0} page(s) connectée(s)
{(pages as any[])?.length || 0} page(s) connectée(s) </p>
</p>
</div>
</div> </div>
<Button
className="bg-gradient-to-r from-primary to-secondary hover:opacity-90 rounded-xl"
data-testid="button-connect-page"
>
<Plus className="w-4 h-4 mr-2" />
Connecter une page
</Button>
</div> </div>
</div> </div>
@@ -92,11 +82,7 @@ export default function ManagedPages() {
<div className="w-20 h-20 rounded-2xl bg-muted/30 flex items-center justify-center mx-auto mb-6"> <div className="w-20 h-20 rounded-2xl bg-muted/30 flex items-center justify-center mx-auto mb-6">
<Users className="w-10 h-10 text-muted-foreground opacity-50" /> <Users className="w-10 h-10 text-muted-foreground opacity-50" />
</div> </div>
<p className="text-muted-foreground mb-6 text-lg">Aucune page connectée</p> <p className="text-muted-foreground text-lg">Aucune page connectée</p>
<Button className="bg-gradient-to-r from-primary to-secondary hover:opacity-90 rounded-xl">
<Plus className="w-4 h-4 mr-2" />
Connecter votre première page
</Button>
</div> </div>
)} )}
</div> </div>