diff --git a/src/components/pages/production/uniformity/detail/UniformityDetail.tsx b/src/components/pages/production/uniformity/detail/UniformityDetail.tsx index 11087e44..2c0a848c 100644 --- a/src/components/pages/production/uniformity/detail/UniformityDetail.tsx +++ b/src/components/pages/production/uniformity/detail/UniformityDetail.tsx @@ -150,12 +150,18 @@ const UniformityDetail: React.FC = ({ () => [ { accessorKey: 'label', - header: 'Label', + enableSorting: false, + header: () => ( + Label + ), cell: (props) => props.row.original.label, }, { accessorKey: 'value', - header: 'Value', + enableSorting: false, + header: () => ( + Value + ), cell: (props) => { const id = props.row.original.id; const { info_umum, latest_approval } = initialValues!; @@ -258,12 +264,18 @@ const UniformityDetail: React.FC = ({ () => [ { accessorKey: 'label', - header: 'Label', + enableSorting: false, + header: () => ( + Label + ), cell: (props) => props.row.original.label, }, { accessorKey: 'value', - header: 'Value', + enableSorting: false, + header: () => ( + Value + ), cell: (props) => {props.row.original.value}, }, ], @@ -301,12 +313,18 @@ const UniformityDetail: React.FC = ({ () => [ { accessorKey: 'label', - header: 'Label', + enableSorting: false, + header: () => ( + Label + ), cell: (props) => props.row.original.label, }, { accessorKey: 'value', - header: 'Value', + enableSorting: false, + header: () => ( + Value + ), cell: (props) => {props.row.original.value}, }, ], @@ -326,10 +344,10 @@ const UniformityDetail: React.FC = ({ {/* Form Section */}
{initialValues ? ( -
+
{/* Info Umum */}
-

+

Informasi Umum

@@ -346,7 +364,7 @@ const UniformityDetail: React.FC = ({ {/* Sampling and Range */} {initialValues.sampling && (
-

+

Sampling and Range

@@ -364,7 +382,7 @@ const UniformityDetail: React.FC = ({ {/* Result */} {initialValues.result && (
-

+

Result

diff --git a/src/components/pages/production/uniformity/detail/UniformityDetailsPreview.tsx b/src/components/pages/production/uniformity/detail/UniformityDetailsPreview.tsx index 04c43a02..1eb3a7ff 100644 --- a/src/components/pages/production/uniformity/detail/UniformityDetailsPreview.tsx +++ b/src/components/pages/production/uniformity/detail/UniformityDetailsPreview.tsx @@ -97,10 +97,10 @@ const UniformityDetailsPreview = ({ {/* Form Section */}
{info_umum ? ( -
+
{/* Body Weight Details */} {uniformity_details && uniformity_details.length > 0 ? ( -
+
data={tableData} columns={columnsUniformity} diff --git a/src/components/pages/production/uniformity/form/UniformityResultForm.tsx b/src/components/pages/production/uniformity/form/UniformityResultForm.tsx index 9660d2c6..eaf51103 100644 --- a/src/components/pages/production/uniformity/form/UniformityResultForm.tsx +++ b/src/components/pages/production/uniformity/form/UniformityResultForm.tsx @@ -124,6 +124,7 @@ const UniformityResultForm = () => { Label ), cell: (props) => props.row.original.label, + enableSorting: false, }, { accessorKey: 'value', @@ -131,6 +132,7 @@ const UniformityResultForm = () => { Value ), cell: (props) => {props.row.original.value}, + enableSorting: false, }, ], [] @@ -168,6 +170,7 @@ const UniformityResultForm = () => { Label ), cell: (props) => props.row.original.label, + enableSorting: false, }, { accessorKey: 'value', @@ -175,6 +178,7 @@ const UniformityResultForm = () => { Value ), cell: (props) => {props.row.original.value}, + enableSorting: false, }, ], [] @@ -197,23 +201,17 @@ 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 ? ( @@ -251,7 +249,7 @@ const UniformityResultForm = () => { {verifyUniformityResult ? (
-

+

Sampling and Range

@@ -266,7 +264,7 @@ const UniformityResultForm = () => {
-

+

Result