mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 06:16:42 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
3f279f7167
commit
65ce5ef4e7
1 changed files with 4 additions and 8 deletions
|
|
@ -15,11 +15,10 @@ function CheckoutSuccessPage() {
|
||||||
const queryClient = useQueryClient();
|
const queryClient = useQueryClient();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Invalida queries de assinatura para refletir o novo estado quando o webhook chegar
|
|
||||||
queryClient.invalidateQueries({ queryKey: ["subscription"] });
|
queryClient.invalidateQueries({ queryKey: ["subscription"] });
|
||||||
const t = setTimeout(() => {
|
const t = setTimeout(() => {
|
||||||
navigate({ to: "/painel", search: {} });
|
navigate({ to: "/bem-vindo" });
|
||||||
}, 6000);
|
}, 4000);
|
||||||
return () => clearTimeout(t);
|
return () => clearTimeout(t);
|
||||||
}, [navigate, queryClient]);
|
}, [navigate, queryClient]);
|
||||||
|
|
||||||
|
|
@ -32,15 +31,12 @@ function CheckoutSuccessPage() {
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<h1 className="text-3xl font-bold tracking-tight">Assinatura confirmada!</h1>
|
<h1 className="text-3xl font-bold tracking-tight">Assinatura confirmada!</h1>
|
||||||
<p className="text-muted-foreground">
|
<p className="text-muted-foreground">
|
||||||
Estamos provisionando seu acesso. Em alguns segundos seu plano estará ativo.
|
Em instantes vamos preparar seu agente Mika.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col sm:flex-row gap-3 justify-center">
|
<div className="flex flex-col sm:flex-row gap-3 justify-center">
|
||||||
<Button asChild className="rounded-lg bg-primary hover:bg-primary-dark text-primary-foreground">
|
<Button asChild className="rounded-lg bg-primary hover:bg-primary-dark text-primary-foreground">
|
||||||
<Link to="/painel" search={{}}>Ir para o painel</Link>
|
<Link to="/bem-vindo">Continuar</Link>
|
||||||
</Button>
|
|
||||||
<Button asChild variant="outline" className="rounded-lg">
|
|
||||||
<Link to="/painel/faturamento">Ver faturamento</Link>
|
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-xs text-muted-foreground">Você será redirecionado em instantes…</p>
|
<p className="text-xs text-muted-foreground">Você será redirecionado em instantes…</p>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue