From ae40dcc9859a8c6478d9f0b42372d4361ea0952e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Rafael=20Siqueira?= Date: Tue, 16 Dec 2025 14:09:39 -0300 Subject: [PATCH] add generic msg --- .../app/routes/_.$orgid.scheduled/route.tsx | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/apps/admin.saladeaula.digital/app/routes/_.$orgid.scheduled/route.tsx b/apps/admin.saladeaula.digital/app/routes/_.$orgid.scheduled/route.tsx index aae118a..ee72933 100644 --- a/apps/admin.saladeaula.digital/app/routes/_.$orgid.scheduled/route.tsx +++ b/apps/admin.saladeaula.digital/app/routes/_.$orgid.scheduled/route.tsx @@ -10,6 +10,7 @@ import { CircleXIcon, ClockAlertIcon, ClockCheckIcon, + ClockIcon, EllipsisIcon, PlusIcon, RocketIcon, @@ -218,6 +219,22 @@ function Timeline({ events: any[] children: (props: any) => ReactNode }) { + if (events.length === 0) { + return ( + + + + + + Nenhum agendamento aqui + + Ainda não há agendamentos. Quando houver, eles aparecerão aqui. + + + + ) + } + return ( <> {events.map(([run_at, items], index) => ( @@ -285,6 +302,28 @@ function Scheduled({ items = [] }) { function Executed({ items = [] }) { return ( + {items.length === 0 ? ( + + + + + + Nenhum agendamento ainda + + Agende a matrícula dos seus colaboradores de forma rápida e + organizada. + + + + + + + ) : null} + {items.map(({ course, user, created_at }, index) => (