Use a textarea in the feedback modal
This commit is contained in:
parent
721cccf152
commit
25385edf12
3 changed files with 35 additions and 15 deletions
|
|
@ -38,14 +38,25 @@ export const InputField = forwardRef(
|
|||
)}
|
||||
>
|
||||
{prefix && <span>{prefix}</span>}
|
||||
<input
|
||||
id={id}
|
||||
{...rest}
|
||||
ref={ref}
|
||||
type={type}
|
||||
checked={checked}
|
||||
disabled={disabled}
|
||||
/>
|
||||
{type === "textarea" ? (
|
||||
<textarea
|
||||
id={id}
|
||||
{...rest}
|
||||
ref={ref}
|
||||
type={type}
|
||||
disabled={disabled}
|
||||
/>
|
||||
) : (
|
||||
<input
|
||||
id={id}
|
||||
{...rest}
|
||||
ref={ref}
|
||||
type={type}
|
||||
checked={checked}
|
||||
disabled={disabled}
|
||||
/>
|
||||
)}
|
||||
|
||||
<label htmlFor={id}>
|
||||
{type === "checkbox" && (
|
||||
<div className={styles.checkbox}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue