From f470636a70943a8ecad8bddc791a1c2dddd28e1e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 4 May 2019 21:13:12 +0300 Subject: Components -> UI --- vnext/src/components/UploadButton.js | 42 ------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 vnext/src/components/UploadButton.js (limited to 'vnext/src/components/UploadButton.js') diff --git a/vnext/src/components/UploadButton.js b/vnext/src/components/UploadButton.js deleted file mode 100644 index 73cbbfcf..00000000 --- a/vnext/src/components/UploadButton.js +++ /dev/null @@ -1,42 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -import Icon from './Icon'; - -export default function UploadButton(props) { - let openfile = () => { - const input = props.inputRef.current; - if (props.value) { - props.onChange(''); - } else { - input.click(); - } - }; - let attachmentChanged = (event) => { - props.onChange(event.target.value); - }; - return ( -