Доработка field

This commit is contained in:
Ifraim Solomonov committed 2024-02-28 14:38:51 +03:00
1 parent 9e1c2c385a
commit bec4d41ea9
1 file changed
+4 -2
+4 -2
View File
@@ -1,13 +1,15 @@
import "./Field.styles.scss"; import "./Field.styles.scss";
function Field({ type, name, placeholder, icon }) { function Field({ type, name, placeholder, icon }) {
const className = type === "submit" ? "submit btn" : "field"; const className = type === "submit" ? "submit btn"
: type === "textarea" ? "field big"
: "field";
return ( return (
<> <>
{type === "textarea" ? ( {type === "textarea" ? (
<textarea <textarea
className="field big" className={className}
name={name} name={name}
placeholder={placeholder} placeholder={placeholder}
/> />