in modules/mlvis-common/src/ui/file-upload-wrapper.js [71:92]
render() {
const {data} = this.state;
const children = React.Children.map(this.props.children, child => {
// if data exists, clone and inject to the input child component
return data ? React.cloneElement(child, {data}) : child;
});
return (
<Container>
<Component>{children}</Component>
<SidePanel>
<Upload
beforeUpload={() => false}
onChange={this._handleFileUpload}
showUploadList={false}
>
<Icon style={{fontSize: 20, padding: 2}} type="file-add" />
</Upload>
</SidePanel>
</Container>
);
}