Skip to content

Commit

Permalink
put back to the original
Browse files Browse the repository at this point in the history
  • Loading branch information
muzanella11 committed Sep 25, 2024
1 parent a009447 commit 7440ddc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ interface TableOverviewGenericProps {
isLoading?: boolean;
}

export function DocumentTypeGenericList({documents, isLoading}: TableOverviewGenericProps) {
export function DocumentTypeGenericList({documents, documentType, isLoading}: TableOverviewGenericProps) {
return (
<Table
isLoading={isLoading}
headers={["Title", "Created", "Status"]}
rows={documents.map((document, key) => [
<Link key={`${key}-${document.id}-id`} href={`/content/${document.documentType}/${document.id}`}>
<p className="font-medium text-black dark:text-white">{(document.data.title as string) || ""}</p>
<p className="font-medium text-black dark:text-white">{document.data[documentType.titleField] as string}</p>
</Link>,
<p key={`${key}-${document.id}-date`} className="text-black dark:text-white">
{document.createdAt?.toDate().toUTCString()}
Expand Down

0 comments on commit 7440ddc

Please sign in to comment.