Cleaned up obsolete types

This commit is contained in:
Andreas 2024-06-24 03:00:40 +02:00
parent 92bdb03836
commit 5f04cb0c83
2 changed files with 1 additions and 8 deletions

View File

@ -12,13 +12,6 @@ export type PostTableCallbacks = {
closeEditor: ()=>any;
uploadAttachment : ()=>any;
}
type PostEditorBucket = Partial<Attributes<Bucket>> & {
attachments:Partial<Attributes<Attachment>>[]
}
export type PostEditorPost = Attributes<Post> & {
buckets:PostEditorBucket[]
}
export type EditorProps = {
open:boolean;

View File

@ -7,7 +7,7 @@ import { Project, Post, Bucket } from "@/model/Models";
import toast from "react-hot-toast"
import { ActionResult } from "@/app/lib/actions/ActionResult";
import { handleActionResult } from "@/app/lib/actions/clientActionHandler";
import PostEditor, { EditorProps, PostEditorPost } from "./PostEditor";
import PostEditor, { EditorProps } from "./PostEditor";
import { getPostsWithBuckets } from "@/app/lib/actions/entityManagement/postActions";
import { PostAttributesWithBuckets } from "@/model/Post";