drop some types in

This commit is contained in:
Thomas Ruoff
2021-02-14 22:47:44 +01:00
parent 81db4b5d0e
commit 85a7b54a13
13 changed files with 116 additions and 45 deletions

View File

@@ -1,15 +1,22 @@
import React from 'react'
export default function (props) {
export default function TextAreaInput({
text,
name,
placeholder,
onchange,
value,
}: {
text: string
name: string
placeholder: string
onchange: () => void
value: string
}) {
return (
<label>
{props.text}
<textarea
className={props.name}
placeholder={props.placeholder}
onChange={props.onchange.bind(null, props.name)}
value={props.value}
/>
{text}
<textarea className={name} placeholder={placeholder} onChange={onchange.bind(null, name)} value={value} />
</label>
)
}