Fixed lint
parent
5b8f2d83a9
commit
897b99cdbe
|
|
@ -28,7 +28,7 @@ const styles = (theme) =>
|
||||||
},
|
},
|
||||||
shareButtonsWrapper :
|
shareButtonsWrapper :
|
||||||
{
|
{
|
||||||
display : 'flex'
|
display : 'flex'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -91,7 +91,7 @@ const FileSharing = (props) =>
|
||||||
type='file'
|
type='file'
|
||||||
disabled={!canShare}
|
disabled={!canShare}
|
||||||
onChange={handleFileChange}
|
onChange={handleFileChange}
|
||||||
accept="image/*"
|
accept='image/*'
|
||||||
id='share-files-gallery-button'
|
id='share-files-gallery-button'
|
||||||
/>
|
/>
|
||||||
<label htmlFor='share-files-button'>
|
<label htmlFor='share-files-button'>
|
||||||
|
|
@ -105,16 +105,16 @@ const FileSharing = (props) =>
|
||||||
</Button>
|
</Button>
|
||||||
</label>
|
</label>
|
||||||
{
|
{
|
||||||
(browser.platform === 'mobile') && canShareFiles && canShare && <label htmlFor='share-files-gallery-button'>
|
(browser.platform === 'mobile') && canShareFiles && canShare && <label htmlFor='share-files-gallery-button'>
|
||||||
<Button
|
<Button
|
||||||
variant='contained'
|
variant='contained'
|
||||||
component='span'
|
component='span'
|
||||||
className={classes.button}
|
className={classes.button}
|
||||||
disabled={!canShareFiles || !canShare}
|
disabled={!canShareFiles || !canShare}
|
||||||
>
|
>
|
||||||
{buttonGalleryDescription}
|
{buttonGalleryDescription}
|
||||||
</Button>
|
</Button>
|
||||||
</label>
|
</label>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<FileList />
|
<FileList />
|
||||||
|
|
@ -124,7 +124,7 @@ const FileSharing = (props) =>
|
||||||
|
|
||||||
FileSharing.propTypes = {
|
FileSharing.propTypes = {
|
||||||
roomClient : PropTypes.any.isRequired,
|
roomClient : PropTypes.any.isRequired,
|
||||||
browser : PropTypes.object.isRequired,
|
browser : PropTypes.object.isRequired,
|
||||||
canShareFiles : PropTypes.bool.isRequired,
|
canShareFiles : PropTypes.bool.isRequired,
|
||||||
tabOpen : PropTypes.bool.isRequired,
|
tabOpen : PropTypes.bool.isRequired,
|
||||||
canShare : PropTypes.bool.isRequired,
|
canShare : PropTypes.bool.isRequired,
|
||||||
|
|
@ -135,7 +135,7 @@ const mapStateToProps = (state) =>
|
||||||
{
|
{
|
||||||
return {
|
return {
|
||||||
canShareFiles : state.me.canShareFiles,
|
canShareFiles : state.me.canShareFiles,
|
||||||
browser : state.me.browser,
|
browser : state.me.browser,
|
||||||
tabOpen : state.toolarea.currentToolTab === 'files',
|
tabOpen : state.toolarea.currentToolTab === 'files',
|
||||||
canShare :
|
canShare :
|
||||||
state.me.roles.some((role) =>
|
state.me.roles.some((role) =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue