diff --git a/frontend/src/components/AgendaPrint.tsx b/frontend/src/components/AgendaPrint.tsx index d35def0..5cf16b5 100644 --- a/frontend/src/components/AgendaPrint.tsx +++ b/frontend/src/components/AgendaPrint.tsx @@ -1,6 +1,7 @@ import type { FC } from 'react'; import { Printer } from 'lucide-react'; import { Button, Modal } from './ui'; +import { useAuth } from '../lib/auth'; import type { Appointment, Bloqueo } from '../services/odoo'; // Vista de impresión de la agenda del día (patrón print-*): un bloque por @@ -50,6 +51,7 @@ const AgendaPrint: FC = ({ doctors, filterDoctorName, }) => { + const { brand } = useAuth(); const dayApts = appointments.filter((a) => a.date === date); // Bloques: un doctor por bloque (o solo el filtrado). Incluye "Sin asignar" // si hay citas sin doctor. @@ -122,7 +124,7 @@ const AgendaPrint: FC = ({ {/* Encabezado */}
-

SKEEN Derma Experts

+

{brand.nombre}

Agenda del día

diff --git a/frontend/src/components/HomeNestLayout.tsx b/frontend/src/components/HomeNestLayout.tsx index 507f0aa..d9161ff 100644 --- a/frontend/src/components/HomeNestLayout.tsx +++ b/frontend/src/components/HomeNestLayout.tsx @@ -53,8 +53,6 @@ interface LayoutProps { subtitle?: string; } -const LOGO_HOMENEST = '/skeen-brand/logos/Logo%20Completo%20Negro.png'; - const topNavItems = [ { label: 'Dashboard', icon: LayoutDashboard, href: '/' }, { label: 'Agenda', icon: Calendar, href: '/agenda' }, @@ -114,7 +112,7 @@ const menuSections = [ export const HomeNestLayout: FC = ({ children, title: _title, subtitle: _subtitle }) => { const location = useLocation(); const navigate = useNavigate(); - const { user, canSee, hasRole, logout } = useAuth(); + const { user, canSee, hasRole, logout, brand } = useAuth(); const [menuOpen, setMenuOpen] = useState(false); const [expanded, setExpanded] = useState(['Clínica']); const chatUnread = useChatUnread(); @@ -239,7 +237,7 @@ export const HomeNestLayout: FC = ({ children, title: _title, subti - SKEEN + {brand.nombre}
@@ -515,7 +513,7 @@ export const HomeNestLayout: FC = ({ children, title: _title, subti
setMenuOpen(false)} aria-hidden="true" />