From a50c17b260232a8d13c299f25cd8e17fec9bdf10 Mon Sep 17 00:00:00 2001 From: "arthur.bassi" Date: Tue, 11 Aug 2026 15:42:29 -0300 Subject: [PATCH] refactor(work-orders): extract inline type/severity cell under function line cap --- .../list/table/wo-table-inline-row-cells.tsx | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/src/app/(protected)/workorders/_components/list/table/wo-table-inline-row-cells.tsx b/src/app/(protected)/workorders/_components/list/table/wo-table-inline-row-cells.tsx index 9fce0888..78e8edac 100644 --- a/src/app/(protected)/workorders/_components/list/table/wo-table-inline-row-cells.tsx +++ b/src/app/(protected)/workorders/_components/list/table/wo-table-inline-row-cells.tsx @@ -28,6 +28,24 @@ type WoTableInlineRowCellsProps = { onPatch: (patch: Partial) => void; }; +function InlineTypeSeverityCell({ + draft, + onPatch, +}: { + draft: WorkOrderTableDraft; + onPatch: (patch: Partial) => void; +}) { + return ( + + onPatch({ type: t, severity: sev })} + /> + + ); +} + export function WoTableInlineRowCells({ draft, weekDefault, @@ -77,13 +95,7 @@ export function WoTableInlineRowCells({ /> - - onPatch({ type: t, severity: sev })} - /> - +