removed descrpition
This commit is contained in:
parent
6ddc700600
commit
a2db3ef468
@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>ipi-survey-platform</title>
|
<title>IIP Survey Platform</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@ -567,11 +567,11 @@ const IsicHsCodes = () => {
|
|||||||
key: 'product',
|
key: 'product',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: <span className="whitespace-nowrap">Description</span>,
|
// name: <span className="whitespace-nowrap">Description</span>,
|
||||||
key: 'description',
|
// key: 'description',
|
||||||
sortable: true
|
// sortable: true
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
name: <span className="whitespace-nowrap">Unit</span>,
|
name: <span className="whitespace-nowrap">Unit</span>,
|
||||||
key: 'unit',
|
key: 'unit',
|
||||||
@ -658,7 +658,7 @@ const IsicHsCodes = () => {
|
|||||||
return [
|
return [
|
||||||
item.code,
|
item.code,
|
||||||
item.product,
|
item.product,
|
||||||
item.description || '-',
|
// item.description || '-',
|
||||||
item.unit,
|
item.unit,
|
||||||
<div className="whitespace-nowrap">{item.estimatedMapped}</div>,
|
<div className="whitespace-nowrap">{item.estimatedMapped}</div>,
|
||||||
displayName,
|
displayName,
|
||||||
@ -1318,7 +1318,6 @@ const IsicHsCodes = () => {
|
|||||||
columnWidths={[
|
columnWidths={[
|
||||||
'140px', // HS Code
|
'140px', // HS Code
|
||||||
'250px', // Product Name
|
'250px', // Product Name
|
||||||
'200px', // Description
|
|
||||||
'140px', // Unit
|
'140px', // Unit
|
||||||
'170px', // Establishment Mapped
|
'170px', // Establishment Mapped
|
||||||
'150px', // Created By
|
'150px', // Created By
|
||||||
@ -1327,15 +1326,16 @@ const IsicHsCodes = () => {
|
|||||||
]}
|
]}
|
||||||
className="w-full"
|
className="w-full"
|
||||||
renderCell={(value, rowIndex, colIndex) => {
|
renderCell={(value, rowIndex, colIndex) => {
|
||||||
// Handle product name and description columns with text wrapping
|
// Handle product name column with text wrapping
|
||||||
if (colIndex === 1 || colIndex === 2) {
|
if (colIndex === 1) {
|
||||||
return (
|
return (
|
||||||
<div className="max-w-[200px] whitespace-normal break-words">
|
<div className="max-w-[200px] whitespace-normal break-words">
|
||||||
{value}
|
{value}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (colIndex === 5 || colIndex === 6) {
|
// Handle the last two columns (Created By and Last Updated)
|
||||||
|
if (colIndex === 4 || colIndex === 5) {
|
||||||
return (
|
return (
|
||||||
<div className="max-w-[200px] whitespace-normal break-words">
|
<div className="max-w-[200px] whitespace-normal break-words">
|
||||||
{value}
|
{value}
|
||||||
@ -1343,8 +1343,8 @@ const IsicHsCodes = () => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle action buttons column (index 7)
|
// Handle action buttons column (index 6 after removing description column)
|
||||||
if (colIndex === 7) {
|
if (colIndex === 6) {
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<button
|
<button
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user