return to test
This commit is contained in:
parent
07ea3e0fc3
commit
5dfbf94b02
|
@ -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]) || "—"}
|
{(formatter ? formatter(row[key]) : row[key]) || <>—</>}
|
||||||
</td>
|
</td>
|
||||||
))}
|
))}
|
||||||
{actions.map(({ key, name, action }) => (
|
{actions.map(({ key, name, action }) => (
|
||||||
|
|
Reference in New Issue