From 3814203de38767f7e539df2563dfab3617324f70 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Tue, 7 Oct 2025 16:57:59 -0300 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20remover=20next/dynamic=20com?= =?UTF-8?q?=20ssr:false=20em=20Server=20Component;=20usar=20NewTicketDialo?= =?UTF-8?q?gDeferred=20(client)=20como=20a=C3=A7=C3=A3o=20prim=C3=A1ria?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/dashboard/page.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index 69ce147..82acb67 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -1,18 +1,10 @@ -import dynamic from "next/dynamic" import { AppShell } from "@/components/app-shell" import { SectionCards } from "@/components/section-cards" import { SiteHeader } from "@/components/site-header" import { RecentTicketsPanel } from "@/components/tickets/recent-tickets-panel" import { TicketQueueSummaryCards } from "@/components/tickets/ticket-queue-summary" import { ChartAreaInteractive } from "@/components/chart-area-interactive" - -const NewTicketDialog = dynamic( - () => - import("@/components/tickets/new-ticket-dialog").then((module) => ({ - default: module.NewTicketDialog, - })), - { ssr: false } -) +import { NewTicketDialogDeferred } from "@/components/tickets/new-ticket-dialog.client" export default function Dashboard() { return ( @@ -22,7 +14,7 @@ export default function Dashboard() { title="Central de operações" lead="Monitoramento em tempo real" secondaryAction={Modo play} - primaryAction={} + primaryAction={} /> } >