[] = [
enableHiding: false,
},
{
- accessorKey: "name",
- header: "Name",
+ accessorKey: "cid",
+ header: "CID",
cell: ({ row }) => (
- {row.getValue("name")}
+ {row.getValue("name") ?? row.getValue("cid")}
),
},
- {
- accessorKey: "cid",
- header: "CID",
- },
{
accessorKey: "size",
header: "Size",
@@ -82,12 +79,20 @@ export const columns: ColumnDef[] = [
size: 20,
cell: ({ row }) => {
const { unpin } = usePinning();
+ const downloadFile = () => {
+ // TODO: @pcfreak30 download file
+ const cid = row.getValue("cid");
+ console.log(cid);
+ };
return (
-