complete installation page - create reusable table - install and config react query
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user