Refactoring

This commit is contained in:
2024-06-25 08:09:39 +02:00
parent 57375bd902
commit 943267be04
10 changed files with 274 additions and 135 deletions
@@ -25,8 +25,6 @@ export default async function PostView(props:Props){
'Project',
'Date Created',
'Date Modified',
'Edit',
'Delete',
]
const actions = {
deletePost: deletePost,
@@ -43,7 +41,11 @@ export default async function PostView(props:Props){
<div className="w-[100%] min-h-fit bg-gray-100 overflow-scroll">
<span className="flex flex-row flex-grow w-[100%] pl-2 pr-2"><h1 className="p-2 inline-block">Post Management</h1><section className="flex-grow"></section><button className='btn btn-success h-12 mt-auto mb-auto self-end'>New</button></span>
<div className="w-[100%] m-auto">
<PostTable data={posts} projects={projects} headings={headings} actions={actions}></PostTable>
<PostTable data={posts}
projects={projects}
headings={headings}
actions={actions}>
</PostTable>
</div>
</div>
);