refactor(): Add interface props

This commit is contained in:
Depickere Sven 2022-01-24 17:43:43 +01:00
parent bfa3b70644
commit d3277bda3f

View File

@ -23,7 +23,7 @@ const Button = styled.button`
}
`;
const FileInput = props => {
const FileInput = (props: { onUpload }) => {
const hiddenFileInput: RefObject<HTMLInputElement> = useRef<HTMLInputElement>(null);
function handleClick() {