Merge pull request #2038 from lbryio/fix-flow

Fix flow errors of fileRender component
This commit is contained in:
Sean Yesmunt 2018-10-14 18:12:36 -04:00 committed by GitHub
commit ce1fd69ce7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View file

@ -4,13 +4,8 @@ import { makeSelectClientSetting } from 'redux/selectors/settings';
import FileRender from './view';
const select = (state, props) => ({
const select = state => ({
currentTheme: makeSelectClientSetting(THEME)(state),
});
const perform = dispatch => ({});
export default connect(
select,
perform
)(FileRender);
export default connect(select)(FileRender);

View file

@ -24,7 +24,7 @@ class FileRender extends React.PureComponent<Props> {
const { source, mediaType, currentTheme } = this.props;
// 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)
const readableFiles = ['text', 'document', 'script'];