mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 09:48:32 +00:00
fix:255 added untitled post as placeholder
This commit is contained in:
parent
651f984e52
commit
7e99d0bc5f
1 changed files with 2 additions and 2 deletions
|
|
@ -149,8 +149,8 @@ export function Editor({ post }: EditorProps) {
|
|||
<TextareaAutosize
|
||||
autoFocus
|
||||
id="title"
|
||||
defaultValue={post.title}
|
||||
placeholder="Post title"
|
||||
defaultValue={post.title === "Untitled Post" ? "" : post.title}
|
||||
placeholder="Untitled Post"
|
||||
className="w-full resize-none appearance-none overflow-hidden bg-transparent text-5xl font-bold focus:outline-none"
|
||||
{...register("title")}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue