mattermost-mobile/app/screens/gallery/index.js
Elias Nahum 1b285dac49
[MM-40160] Crt gallery fix (#5833)
* Fix Gallery crash

* fix file type icons

* memoize gallery files
2021-11-22 15:17:18 +02:00

16 lines
392 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {connect} from 'react-redux';
import {getTheme} from '@mm-redux/selectors/entities/preferences';
import Gallery from './gallery';
function mapStateToProps(state) {
return {
theme: getTheme(state),
};
}
export default connect(mapStateToProps)(Gallery);