oh lord. prettier eslint and all that

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-11-02 20:24:41 +01:00
parent e1f37b439e
commit 107feda4ad
121 changed files with 1856 additions and 1684 deletions

View File

@@ -1,26 +1,27 @@
import { formatDate } from "@/utils/date";
import { type ColumnDef } from "@tanstack/react-table";
import { type Project as IProject } from "@prisma/client";
import { ProjectActions } from "./ProjectActions";
import { formatDate } from '@/utils/date';
import type { Project as IProject } from '@prisma/client';
import type { ColumnDef } from '@tanstack/react-table';
import { ProjectActions } from './ProjectActions';
export type Project = IProject;
export const columns: ColumnDef<Project>[] = [
{
accessorKey: "name",
header: "Name",
accessorKey: 'name',
header: 'Name',
},
{
accessorKey: "createdAt",
header: "Created at",
accessorKey: 'createdAt',
header: 'Created at',
cell({ row }) {
const date = row.original.createdAt;
return <div>{formatDate(date)}</div>;
},
},
{
id: "actions",
header: "Actions",
id: 'actions',
header: 'Actions',
cell: ({ row }) => <ProjectActions {...row.original} />,
},
];