change icon & edit plant
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import {classNames} from "../utilities/classNames";
|
||||
|
||||
|
||||
export const InputField = ({children, name, type = "text", ...props}) => {
|
||||
export const InputField = ({children, name, value = "", type = "text", ...props}) => {
|
||||
|
||||
const id = props.id ?? name
|
||||
const classStyle = props.className ?? ''
|
||||
@@ -17,6 +16,7 @@ export const InputField = ({children, name, type = "text", ...props}) => {
|
||||
<input id={id}
|
||||
name={name}
|
||||
type={type}
|
||||
value={value}
|
||||
className="focus:ring-indigo-500 focus:border-indigo-500 block w-full px-2 py-1 mt-1 sm:text-sm border border-gray-300 rounded-md dark:bg-gray-500"
|
||||
{...props}/>
|
||||
</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user