align onChange types

This commit is contained in:
Thomas Ruoff
2021-02-16 23:26:00 +01:00
parent 0f06bed517
commit 4f48096bbd
4 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
import React from 'react'
import React, { ChangeEvent } from 'react'
export default function TextAreaInput({
text,
@@ -10,7 +10,7 @@ export default function TextAreaInput({
text: string
name: string
placeholder: string
onchange: (name: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void
onchange: (name: string, event: ChangeEvent<{ value: string }>) => void
value: string
}) {
return (