diff --git a/src/components/common/input.tsx b/src/components/common/input.tsx index 272e41b..f9084a1 100644 --- a/src/components/common/input.tsx +++ b/src/components/common/input.tsx @@ -9,13 +9,12 @@ type Props = { placeholder: string, icon?: React.ReactNode, field?: any, - ref?: any, className?: string, value?: string, onChange?: (value: string) => void } -export const Input: FC = ({ placeholder, type = "text", icon, field, ref, className, value, onChange }) => { +export const Input: FC = ({ placeholder, type = "text", icon, field, className, value, onChange }) => { const [hidden, setHidden] = useState(false) const handleHidden = () => setHidden(prev => !prev) return ( @@ -28,7 +27,7 @@ export const Input: FC = ({ placeholder, type = "text", icon, field, ref, : icon} {placeholder === "شماره کارت" && field.value && findBankByPAN(field.value).icon} -