From fbf7cb2d2120350bd93f4b48f853c5aa395711b0 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Fri, 30 Jan 2026 13:37:13 +0700 Subject: [PATCH] refactor(FE): Wrap table headers in styled span --- .../uniformity/form/UniformityPreviewForm.tsx | 8 ++++-- .../uniformity/form/UniformityResultForm.tsx | 28 ++++++++++++++----- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/src/components/pages/production/uniformity/form/UniformityPreviewForm.tsx b/src/components/pages/production/uniformity/form/UniformityPreviewForm.tsx index a1f98526..3cc120fd 100644 --- a/src/components/pages/production/uniformity/form/UniformityPreviewForm.tsx +++ b/src/components/pages/production/uniformity/form/UniformityPreviewForm.tsx @@ -50,12 +50,16 @@ const UniformityPreviewForm = () => { () => [ { accessorKey: 'number', - header: 'Number', + header: () => ( + Number + ), cell: (props) => props.row.original.number, }, { accessorKey: 'weight', - header: 'Weight (g)', + header: () => ( + Weight (g) + ), cell: (props) => {props.row.original.weight}, }, ], diff --git a/src/components/pages/production/uniformity/form/UniformityResultForm.tsx b/src/components/pages/production/uniformity/form/UniformityResultForm.tsx index 20b267f7..3cc12017 100644 --- a/src/components/pages/production/uniformity/form/UniformityResultForm.tsx +++ b/src/components/pages/production/uniformity/form/UniformityResultForm.tsx @@ -120,12 +120,16 @@ const UniformityResultForm = () => { () => [ { accessorKey: 'label', - header: 'Label', + header: () => ( + Label + ), cell: (props) => props.row.original.label, }, { accessorKey: 'value', - header: 'Value', + header: () => ( + Value + ), cell: (props) => {props.row.original.value}, }, ], @@ -160,12 +164,16 @@ const UniformityResultForm = () => { () => [ { accessorKey: 'label', - header: 'Label', + header: () => ( + Label + ), cell: (props) => props.row.original.label, }, { accessorKey: 'value', - header: 'Value', + header: () => ( + Value + ), cell: (props) => {props.row.original.value}, }, ], @@ -189,17 +197,23 @@ const UniformityResultForm = () => { () => [ { accessorKey: 'number', - header: 'Number', + header: () => ( + Number + ), cell: (props) => props.row.original.number, }, { accessorKey: 'weight', - header: 'Weight (g)', + header: () => ( + Weight (g) + ), cell: (props) => {props.row.original.weight}, }, { accessorKey: 'status', - header: 'Status', + header: () => ( + Status + ), cell: (props) => { const status = props.row.original.status; return status ? (