Refactoring
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user