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>
{items.map((row, index) => (
<tr className={index % 2 ? "bg-white" : "bg-gray-50"} key={index}>
{headers.map(({ key, formatter, nowrap }) => (
{headers.map(({ key, formatter, nowrap = true }) => (
<td
key={key}
className={`${nowrap ? "whitespace-nowrap" : ""} px-6 py-4 text-sm font-medium text-gray-900`}