removed descrpition

This commit is contained in:
Malini 2025-12-09 15:48:38 +05:30
parent 6ddc700600
commit a2db3ef468
2 changed files with 14 additions and 14 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ipi-survey-platform</title>
<title>IIP Survey Platform</title>
</head>
<body>
<div id="root"></div>

View File

@ -567,11 +567,11 @@ const IsicHsCodes = () => {
key: 'product',
sortable: true
},
{
name: <span className="whitespace-nowrap">Description</span>,
key: 'description',
sortable: true
},
// {
// name: <span className="whitespace-nowrap">Description</span>,
// key: 'description',
// sortable: true
// },
{
name: <span className="whitespace-nowrap">Unit</span>,
key: 'unit',
@ -658,7 +658,7 @@ const IsicHsCodes = () => {
return [
item.code,
item.product,
item.description || '-',
// item.description || '-',
item.unit,
<div className="whitespace-nowrap">{item.estimatedMapped}</div>,
displayName,
@ -1318,8 +1318,7 @@ const IsicHsCodes = () => {
columnWidths={[
'140px', // HS Code
'250px', // Product Name
'200px', // Description
'140px', // Unit
'140px', // Unit
'170px', // Establishment Mapped
'150px', // Created By
'130px', // Last Updated
@ -1327,15 +1326,16 @@ const IsicHsCodes = () => {
]}
className="w-full"
renderCell={(value, rowIndex, colIndex) => {
// Handle product name and description columns with text wrapping
if (colIndex === 1 || colIndex === 2) {
// Handle product name column with text wrapping
if (colIndex === 1) {
return (
<div className="max-w-[200px] whitespace-normal break-words">
{value}
</div>
);
}
if (colIndex === 5 || colIndex === 6) {
// Handle the last two columns (Created By and Last Updated)
if (colIndex === 4 || colIndex === 5) {
return (
<div className="max-w-[200px] whitespace-normal break-words">
{value}
@ -1343,8 +1343,8 @@ const IsicHsCodes = () => {
);
}
// Handle action buttons column (index 7)
if (colIndex === 7) {
// Handle action buttons column (index 6 after removing description column)
if (colIndex === 6) {
return (
<div className="flex items-center gap-2">
<button