mirror of
https://github.com/OwethuManagedServices/oms-website-nextjs.git
synced 2025-12-17 18:58:10 +00:00
feature: create post
This commit is contained in:
@ -48,16 +48,16 @@ const PostSchema = z.object({
|
||||
});
|
||||
|
||||
export type CreatePostState = {
|
||||
errors?: {
|
||||
message: string | null;
|
||||
errors: {
|
||||
title?: string[];
|
||||
slug?: string[];
|
||||
content?: string[];
|
||||
image?: string[]; // Changed from imageUrl
|
||||
image?: string[];
|
||||
tags?: string[];
|
||||
excerpt?: string[];
|
||||
_form?: string[];
|
||||
};
|
||||
message?: string | null;
|
||||
// Add a field to hold previous input values
|
||||
previousInput?: {
|
||||
title?: string;
|
||||
slug?: string;
|
||||
@ -65,7 +65,6 @@ export type CreatePostState = {
|
||||
excerpt?: string;
|
||||
tags?: string;
|
||||
published?: boolean;
|
||||
// We don't repopulate the file input for security reasons
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user