This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/packages/dashboard-v2/src/components/LatestActivity/ActivityTable.js

23 lines
719 B
JavaScript
Raw Normal View History

import * as React from "react";
import { Table, TableBody, TableCell, TableRow } from "../Table";
export default function ActivityTable({ data }) {
return (
<Table style={{ tableLayout: "fixed" }}>
<TableBody>
{data.map(({ name, type, size, uploaded, skylink }) => (
<TableRow key={skylink}>
<TableCell>{name}</TableCell>
<TableCell className="w-[80px]">{type}</TableCell>
<TableCell className="w-[80px]" align="right">
{size}
</TableCell>
<TableCell className="w-[180px]">{uploaded}</TableCell>
<TableCell>{skylink}</TableCell>
</TableRow>
))}
</TableBody>
</Table>
);
}