fix all type errors

This commit is contained in:
Thomas Ruoff
2021-02-15 23:29:25 +01:00
parent 85a7b54a13
commit 3386fb3928
14 changed files with 123 additions and 132 deletions

View File

@@ -3,15 +3,15 @@ import React from 'react'
export default function Input({
text,
name,
value,
value = '',
placeholder,
onchange,
}: {
text: string
name: string
value: string
placeholder: string
onchange: () => void
value?: string
placeholder?: string
onchange: (name: string, event: React.ChangeEvent<HTMLInputElement>) => void
}) {
return (
<label>