Use Field onValueChange in the Zendesk dialog

Field exposes onValueChange(value) and wires the input's onChange itself,
so the explicit event-typed onChange handler was redundant.

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
Aurélien Sibiril
2026-06-04 19:09:04 +02:00
parent 8ca724fdb6
commit 8253796743

View File

@@ -857,8 +857,7 @@ export function AddAccessSourceDialog({
label={__("Zendesk subdomain")}
placeholder={__("acme")}
value={zendeskSubdomain}
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
setZendeskSubdomain(e.target.value)}
onValueChange={setZendeskSubdomain}
help={__("The <subdomain> part of <subdomain>.zendesk.com")}
required
autoFocus