Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-04-25 13:19:07 +00:00
parent e4d1cee9b9
commit d8dc56d664

View file

@ -163,22 +163,9 @@ export function TelegramOnboardingWizard({ open, onOpenChange, initialStep }: Pr
<StepToken <StepToken
validated={validated} validated={validated}
onValidated={handleValidated} onValidated={handleValidated}
onNext={() => setStep(4)} onNext={() => { /* fechamento é feito em handleValidated */ }}
/> />
)} )}
{step === 4 && agent && botUsername && (
<StepWaiting
agentInstanceId={agent.id}
botUsername={botUsername}
connectedAt={connectedAt}
onFinish={handleFinish}
/>
)}
{step === 4 && (!agent || !botUsername) && (
<div className="px-6 py-12 text-center text-sm text-muted-foreground">
Conecte o bot primeiro para receber a primeira mensagem.
</div>
)}
</motion.div> </motion.div>
</AnimatePresence> </AnimatePresence>
</div> </div>