feat add localization & auto focus.

This commit is contained in:
elforjani13
2021-12-13 20:14:16 +02:00
parent a52f00eeb2
commit 897e674912
7 changed files with 72 additions and 21 deletions

View File

@@ -11,11 +11,14 @@ import {
tansformDateValue,
handleDateChange,
} from 'utils';
import { useAutofocus } from 'hooks';
/**
* Parial Unlocking transactions form fields.
*/
export default function UnlockingPartialTransactionsFormFields() {
const reasonFieldRef = useAutofocus();
return (
<div className={Classes.DIALOG_BODY}>
<Row>
@@ -96,6 +99,7 @@ export default function UnlockingPartialTransactionsFormFields() {
growVertically={true}
large={true}
intent={inputIntent({ error, touched })}
inputRef={(ref) => (reasonFieldRef.current = ref)}
{...field}
/>
</FormGroup>