diff --git a/client/src/components/atoms/Form/Input.tsx b/client/src/components/atoms/Form/Input.tsx index af6ad71..f844669 100644 --- a/client/src/components/atoms/Form/Input.tsx +++ b/client/src/components/atoms/Form/Input.tsx @@ -23,7 +23,6 @@ interface InputProps { value?: string onChange?( event: - | any | FormEvent | ChangeEvent | ChangeEvent @@ -36,14 +35,13 @@ interface InputProps { interface InputState { isFocused: boolean - startDate?: Date + dateCreated?: Date } export default class Input extends PureComponent { - hiddenDate: any public state: InputState = { isFocused: false, - startDate: new Date() + dateCreated: new Date() } public inputWrapClasses() { @@ -64,11 +62,11 @@ export default class Input extends PureComponent { private handleDateChange = (date: Date) => { this.setState({ - startDate: date + dateCreated: date }) const event = { currentTarget: { - name: 'startDate', + name: 'dateCreated', value: date } } @@ -165,7 +163,7 @@ export default class Input extends PureComponent { return (