Merge pull request #2038 from lbryio/fix-flow
Fix flow errors of fileRender component
This commit is contained in:
commit
ce1fd69ce7
2 changed files with 3 additions and 8 deletions
|
@ -4,13 +4,8 @@ import { makeSelectClientSetting } from 'redux/selectors/settings';
|
||||||
|
|
||||||
import FileRender from './view';
|
import FileRender from './view';
|
||||||
|
|
||||||
const select = (state, props) => ({
|
const select = state => ({
|
||||||
currentTheme: makeSelectClientSetting(THEME)(state),
|
currentTheme: makeSelectClientSetting(THEME)(state),
|
||||||
});
|
});
|
||||||
|
|
||||||
const perform = dispatch => ({});
|
export default connect(select)(FileRender);
|
||||||
|
|
||||||
export default connect(
|
|
||||||
select,
|
|
||||||
perform
|
|
||||||
)(FileRender);
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ class FileRender extends React.PureComponent<Props> {
|
||||||
const { source, mediaType, currentTheme } = this.props;
|
const { source, mediaType, currentTheme } = this.props;
|
||||||
|
|
||||||
// Extract relevant data to render file
|
// Extract relevant data to render file
|
||||||
const { blob, stream, fileName, fileType, contentType, downloadPath } = source;
|
const { stream, fileType, contentType, downloadPath } = source;
|
||||||
|
|
||||||
// Human-readable files (scripts and plain-text files)
|
// Human-readable files (scripts and plain-text files)
|
||||||
const readableFiles = ['text', 'document', 'script'];
|
const readableFiles = ['text', 'document', 'script'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue