Fix flashing submit button

This commit is contained in:
MartinBraquet
2025-10-21 12:36:54 +02:00
parent 21254695d5
commit 8bc2f0c40e

View File

@@ -18,7 +18,7 @@ export function ContactComponent() {
placeholder: 'Contact us here...',
})
const hideButton = editor?.getText().length == 0
const showButton = !!editor?.getText().length
return (
<Col className="mx-2">
@@ -29,7 +29,7 @@ export function ContactComponent() {
editor={editor}
/>
</div>
{!hideButton && (
{showButton && (
<Row className="right-1 justify-between gap-2">
<Button
size="xs"