| | |
| | | import React, { useState, useRef, useEffect, useMemo, useCallback } from "react"; |
| | | import { Card, useTheme, List, CardContent, Input, InputAdornment, IconButton, TextField } from "@mui/material"; |
| | | import { useForm } from 'react-hook-form'; |
| | | import { useTranslate } from 'react-admin'; |
| | | import Warehouse from "./warehouse"; |
| | | import { Filter, SearchInput } from 'react-admin'; |
| | | |
| | | |
| | | export const MySearchInput = (props) => { |
| | | const [searchTerm, setSearchTerm] = useState(''); |
| | | const translate = useTranslate(); |
| | | |
| | | return ( |
| | | <> |
| | | <TextField |
| | | label="Search" |
| | | label={translate('common.action.search')} |
| | | value={searchTerm} |
| | | onChange={(e) => setSearchTerm(e.target.value)} |
| | | /> |