Skip to content

Commit 3332756

Browse files
committed
fix: message as default
1 parent 983a274 commit 3332756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/FloatingWhatsapp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function FloatingWhatsApp({
2727
darkMode = false,
2828
styles = {},
2929
className = '',
30-
placeholder
30+
placeholder = 'Type a message..'
3131
}: FloatingWhatsAppProps): JSX.Element {
3232
const [isOpen, setOpen] = useState(false)
3333
const [message, setMessage] = useState('')
@@ -72,7 +72,7 @@ function FloatingWhatsApp({
7272
<form onSubmit={handleSubmit}>
7373
<input
7474
className={`${css.input} ${isArabic(message) ? css.arabic : ''}`}
75-
placeholder={placeholder ?? 'Type a message..'}
75+
placeholder={placeholder}
7676
onChange={handleChange}
7777
value={message}
7878
dir='auto'

0 commit comments

Comments
 (0)