0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Set loading state of the post reply button

ref https://linear.app/tryghost/issue/AP-394

I've also passed the disabled prop, but not sure if it's necessary
This commit is contained in:
Fabien O'Carroll 2024-09-19 10:34:27 +07:00 committed by Fabien 'egg' O'Carroll
parent f60f22be2d
commit 82328708ac

View file

@ -85,7 +85,7 @@ const APReplyBox: React.FC<APTextAreaProps> = ({
</div>
</FormPrimitive.Root>
<div className='absolute bottom-[6px] right-[9px] flex space-x-4 transition-[opacity] duration-150'>
<Button color='black' id='post' label='Post' size='sm' onClick={handleClick} />
<Button disabled={replyMutation.isLoading} loading={replyMutation.isLoading} color='black' id='post' label='Post' size='sm' onClick={handleClick} />
</div>
</div>
</div>