This commit is contained in:
Karol Wypchlo 2021-02-15 11:40:10 +01:00
parent 8902e24b12
commit c225bc38ad
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ export default function Table({ items, count, headers, actions, offset, setOffse
<tbody> <tbody>
{items.map((row, index) => ( {items.map((row, index) => (
<tr className={index % 2 ? "bg-white" : "bg-gray-50"} key={index}> <tr className={index % 2 ? "bg-white" : "bg-gray-50"} key={index}>
{headers.map(({ key, formatter, nowrap }) => ( {headers.map(({ key, formatter, nowrap = true }) => (
<td <td
key={key} key={key}
className={`${nowrap ? "whitespace-nowrap" : ""} px-6 py-4 text-sm font-medium text-gray-900`} className={`${nowrap ? "whitespace-nowrap" : ""} px-6 py-4 text-sm font-medium text-gray-900`}