mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
align onChange types
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user