mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-22 00:13:45 -05:00
This commit is contained in:
committed by
GitHub
parent
098cacd904
commit
b22d712b4f
@@ -1,4 +1,4 @@
|
||||
import React, { createRef, useEffect, useState } from 'react';
|
||||
import React, { useRef, useEffect, useState } from 'react';
|
||||
import { Form } from 'react-aria-components';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -15,7 +15,7 @@ type SaveReportChooseProps = {
|
||||
};
|
||||
|
||||
export function SaveReportChoose({ onApply }: SaveReportChooseProps) {
|
||||
const inputRef = createRef<HTMLInputElement>();
|
||||
const inputRef = useRef<HTMLInputElement>(null);
|
||||
const [err, setErr] = useState('');
|
||||
const [value, setValue] = useState('');
|
||||
const { t } = useTranslation();
|
||||
@@ -24,7 +24,7 @@ export function SaveReportChoose({ onApply }: SaveReportChooseProps) {
|
||||
if (inputRef.current) {
|
||||
inputRef.current.focus();
|
||||
}
|
||||
});
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user