This commit is contained in:
2026-01-14 21:30:32 +03:00
parent 3a72b8e933
commit ce68b8b978
6 changed files with 52 additions and 30 deletions

View File

@@ -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}