return to test

This commit is contained in:
Karol Wypchlo 2021-02-11 23:11:43 +01:00
parent 07ea3e0fc3
commit 5dfbf94b02
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}> <tr className={index % 2 ? "bg-white" : "bg-gray-50"} key={index}>
{headers.map(({ key, formatter }) => ( {headers.map(({ key, formatter }) => (
<td key={key} className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"> <td key={key} className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
{(formatter ? formatter(row[key]) : row[key]) || "&mdash;"} {(formatter ? formatter(row[key]) : row[key]) || <>&mdash;</>}
</td> </td>
))} ))}
{actions.map(({ key, name, action }) => ( {actions.map(({ key, name, action }) => (