fix: Remove duplicate code in product pages
Fixed syntax error causing build failure
This commit is contained in:
@@ -86,29 +86,9 @@ const productTables = productData?.productTables || [];
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
)})}
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{table.rows.map((row, rowIndex) => (
|
|
||||||
<tr class={rowIndex % 2 === 0 ? 'bg-white' : 'bg-secondary-50'}>
|
|
||||||
{row.map((cell, cellIndex) => (
|
|
||||||
<td class="px-5 py-4 md:px-6 md:py-5 text-base md:text-lg lg:text-xl text-secondary-700 border-b border-secondary-100">
|
|
||||||
{cell}
|
|
||||||
</td>
|
|
||||||
))}
|
|
||||||
</tr>
|
|
||||||
))}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<!-- Specifications -->
|
<!-- Product Specifications -->
|
||||||
{product.data.specifications && product.data.specifications.length > 0 && (
|
{product.data.specifications && product.data.specifications.length > 0 && (
|
||||||
<section class="mb-12">
|
<section class="mb-12">
|
||||||
<h2 class="text-3xl md:text-4xl lg:text-5xl font-bold text-secondary-900 mb-8">ข้อมูลจำเพาะ</h2>
|
<h2 class="text-3xl md:text-4xl lg:text-5xl font-bold text-secondary-900 mb-8">ข้อมูลจำเพาะ</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user