mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
- Changing the UI for the active item in the nav - Updating the UI for drag and drop - Fixing z-index for date selector
39 lines
1.3 KiB
JavaScript
39 lines
1.3 KiB
JavaScript
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
export default class FileUploadOverlay extends React.Component {
|
|
render() {
|
|
var overlayClass = 'file-overlay hidden';
|
|
if (this.props.overlayType === 'right') {
|
|
overlayClass += ' right-file-overlay';
|
|
} else if (this.props.overlayType === 'center') {
|
|
overlayClass += ' center-file-overlay';
|
|
}
|
|
|
|
return (
|
|
<div className={overlayClass}>
|
|
<div className='overlay__indent'>
|
|
<div className='overlay__circle'>
|
|
<img
|
|
className='overlay__files'
|
|
src='/static/images/filesOverlay.png'
|
|
alt='Files'
|
|
/>
|
|
<span><i className='fa fa-upload'></i>{'Drop a file to upload it.'}</span>
|
|
<img
|
|
className='overlay__logo'
|
|
src='/static/images/logoWhite.png'
|
|
width='100'
|
|
alt='Logo'
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
FileUploadOverlay.propTypes = {
|
|
overlayType: React.PropTypes.string
|
|
};
|