Use a textarea in the feedback modal

This commit is contained in:
Robert Long 2022-02-23 16:07:14 -08:00
commit 25385edf12
3 changed files with 35 additions and 15 deletions

View file

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