return to test

This commit is contained in:
Karol Wypchlo 2021-02-11 23:08:45 +01:00
parent d3d5b05de5
commit 07ea3e0fc3
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ export default function Table({ items, count, headers, actions, offset, setOffse
<tr className={index % 2 ? "bg-white" : "bg-gray-50"} key={index}>
{headers.map(({ key, formatter }) => (
<td key={key} className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
{(formatter ? formatter(row[key]) : row[key]) || "-"}
{(formatter ? formatter(row[key]) : row[key]) || "&mdash;"}
</td>
))}
{actions.map(({ key, name, action }) => (