Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
feat(init): cleans up interfaces for PatientForm
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Nov 21, 2019
1 parent d6ab622 commit 2063b20
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/PatientForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ interface Props {
}

const PatientForm: React.FC<Props> = (props: Props) => {
const handleChange = (event: any, fieldName: string) => {
const htmlInputEvent = event as React.FormEvent<HTMLInputElement>
props.onFieldChange(fieldName, htmlInputEvent.currentTarget.value)
const handleChange = (event: React.FormEvent<HTMLInputElement>, fieldName: string) => {
props.onFieldChange(fieldName, event.currentTarget.value)
}

const { patient, isEditable, onSaveButtonClick, onCancelButtonClick } = props
Expand Down

0 comments on commit 2063b20

Please sign in to comment.