updated to use ProductTable

Co-authored-by: sstrawsburg@gmail.com <sstrawsburg@gmail.com>
This commit is contained in:
2024-12-13 16:03:39 -05:00
parent f6917ca832
commit ca61f2337b
6 changed files with 18 additions and 98 deletions

View File

@@ -8,7 +8,8 @@ export default async function ProductTable(props:any) {
<th className='bg-slate-700 text-white pl-2 w-40'>Component</th>
<th className='bg-slate-700 text-white w-40'>Manufacturer</th>
<th className='bg-slate-700 text-white w-40'>Model #</th>
<th className='bg-slate-700 text-white w-40'>Price</th>
<th className='bg-slate-700 text-white w-40'>Retail Price</th>
<th className='bg-slate-700 text-white w-20'>Sale Price</th>
</tr>
</thead>
<tbody>
@@ -17,6 +18,7 @@ export default async function ProductTable(props:any) {
<td className='text-slate-800'>{item.category}</td>
<td className='text-slate-800'>{item.brandName}</td>
<td className='text-slate-800'>{item.modelnumber}</td>
<td className='text-slate-800'>{item.retailPrice}</td>
<td className="text-slate-800 flex items-center gap-2">
${Number(item.salePrice).toFixed(2)}
<button >Buy</button>