mirror of
https://github.com/r-freeman/portfolio.git
synced 2025-06-27 18:10:21 +00:00
Update comment component
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 1m53s
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 1m53s
This commit is contained in:
parent
efd8dfb8f8
commit
34a1bb9756
@ -185,8 +185,10 @@ Comments.Form = function Form({slug}: { slug: string }) {
|
||||
/>
|
||||
<input type="hidden" name="parent_id" value={parentId ?? ''}/>
|
||||
<input type="hidden" name="slug" value={slug}/>
|
||||
<div className="mt-2 flex justify-between items-center gap-x-4">
|
||||
<p className="text-sm text-zinc-600 dark:text-zinc-400">{`${commentFormContext?.commentLength} / ${commentFormContext?.commentMaxLength}`}</p>
|
||||
<div className={clsx('mt-2 flex justify-end items-center gap-x-4', session && 'justify-between')}>
|
||||
{session &&
|
||||
<p className="text-sm text-zinc-600 dark:text-zinc-400">{`${commentFormContext?.commentLength} / ${commentFormContext?.commentMaxLength}`}</p>
|
||||
}
|
||||
<div className="flex gap-x-4">
|
||||
{commentFormContext?.replyTo &&
|
||||
<button
|
||||
|
Loading…
x
Reference in New Issue
Block a user