From 5bef0f206158928a628f882698f286574af09982 Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Tue, 30 Sep 2025 13:40:33 +0800 Subject: [PATCH] update --- .../form/article/create-article-form.tsx | 10 ++- components/form/article/edit-article-form.tsx | 1 + .../generate-ai-content-rewrite-form.tsx | 56 +++++++++++++--- .../form/article/generate-ai-single-form.tsx | 6 +- components/landing-page/navbar.tsx | 66 ++++++++++--------- 5 files changed, 97 insertions(+), 42 deletions(-) diff --git a/components/form/article/create-article-form.tsx b/components/form/article/create-article-form.tsx index 40f25d6..e7a4270 100644 --- a/components/form/article/create-article-form.tsx +++ b/components/form/article/create-article-form.tsx @@ -524,13 +524,21 @@ export default function CreateArticleForm() { Single Article - Content Rewrite + {/* Content Rewrite */} {selectedWritingType === "single" ? ( { setDiseData(data); + // setValue("title", data?.title ?? "", { + // shouldValidate: true, + // shouldDirty: true, + // }); + // setValue("slug", generateSlug(data?.title ?? ""), { + // shouldValidate: true, + // shouldDirty: true, + // }); setValue( "description", data?.articleBody ? data?.articleBody : "" diff --git a/components/form/article/edit-article-form.tsx b/components/form/article/edit-article-form.tsx index 99124eb..d55147c 100644 --- a/components/form/article/edit-article-form.tsx +++ b/components/form/article/edit-article-form.tsx @@ -681,6 +681,7 @@ export default function EditArticleForm(props: { isDetail: boolean }) {