fix some HTML ui warnings;

cleanup
This commit is contained in:
Dobromir Popov
2024-04-07 01:47:09 +03:00
parent 807bb35973
commit 3f7255bf96
3 changed files with 22 additions and 23 deletions

View File

@ -3,7 +3,7 @@ import axiosInstance from '../../src/axiosSecure';
import common from '../../src/helpers/common';
//import { is } from 'date-fns/locale';
function PublisherSearchBox({ selectedId, onChange, isFocused, filterDate, showSearch = true, showList = false, showAllAuto = false, infoText = " Семеен глава" }) {
function PublisherSearchBox({ id, selectedId, onChange, isFocused, filterDate, showSearch = true, showList = false, showAllAuto = false, infoText = " Семеен глава" }) {
const [selectedItem, setSelectedItem] = useState(null);
const [searchText, setSearchText] = useState('');
@ -95,6 +95,7 @@ function PublisherSearchBox({ selectedId, onChange, isFocused, filterDate, showS
{showSearch ? (
<>
<input ref={inputRef}
{...(id ? { id } : {})}
type="text"
value={searchText}
onChange={(e) => setSearchText(e.target.value)}