* Add multiselect to Apps Forms * Address feedback * Add selected information and change button name * Fix styles * Add missing semicolon and change currentList to currentSelected. * Address UX feedback * Fix test * Address feedback * Fix snapshots * Potential fix for flaky test * Fix iOS back button * Address feedback * Fix tests * Add separator and scroll to bottom on selected items * Use setTimeout for scroll and also scroll on unselected * Fix lint * Fix tsc * Fix tests
17 lines
513 B
TypeScript
17 lines
513 B
TypeScript
// 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 {GlobalState} from '@mm-redux/types/store';
|
|
|
|
import SelectedOptions from './selected_options';
|
|
|
|
function mapStateToProps(state: GlobalState) {
|
|
return {
|
|
theme: getTheme(state),
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, null, null, {forwardRef: true})(SelectedOptions);
|