fixes
This commit is contained in:
@@ -8,6 +8,7 @@ interface InputCardProps {
|
||||
name: string;
|
||||
placeholder: string;
|
||||
value: string;
|
||||
required?: boolean;
|
||||
}
|
||||
|
||||
export default function InputCard({
|
||||
@@ -15,6 +16,7 @@ export default function InputCard({
|
||||
name,
|
||||
placeholder,
|
||||
value,
|
||||
required = false,
|
||||
}: InputCardProps) {
|
||||
const dispatch = useAppDispatch();
|
||||
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
@@ -24,9 +26,8 @@ export default function InputCard({
|
||||
<>
|
||||
<ProInputCard title={title} dividerStyle={{ margin: "5px 0 0 0" }}>
|
||||
<Form.Item
|
||||
label={title}
|
||||
name={name}
|
||||
style={{ position: "relative", top: -5 }}
|
||||
rules={[{ required }]}
|
||||
>
|
||||
<Input
|
||||
placeholder={placeholder}
|
||||
|
||||
Reference in New Issue
Block a user