complete installation page - create reusable table - install and config react query

This commit is contained in:
Alihaghighattalab
2024-08-10 17:48:08 +03:30
parent c5e67d85ca
commit bfd9fa2b64
16 changed files with 1017 additions and 3 deletions
+3 -2
View File
@@ -13,9 +13,10 @@ const value = [
type Props = {
field?: any
placeholder?: string
className?: string
}
export const ComboBox: FC<Props> = ({ field, placeholder }) => {
export const ComboBox: FC<Props> = ({ field, placeholder, className }) => {
const [query, setQuery] = useState('')
const filteredValue =
@@ -30,7 +31,7 @@ export const ComboBox: FC<Props> = ({ field, placeholder }) => {
<div className="relative w-full">
<ComboboxInput
placeholder={placeholder}
className="input-style min-w-full"
className={`input-style min-w-full ${className}`}
displayValue={(person: any) => person?.name}
onChange={(event) => setQuery(event.target.value)}
ref={field && field.ref}