3import ColumnSettings from '../components/column_settings';
4import { changeSetting } from '../../../actions/settings';
5import { setFilter } from '../../../actions/notifications';
6import { clearNotifications, requestBrowserPermission } from '../../../actions/notifications'; 7import { changeAlerts as changePushNotifications } from '../../../actions/push_notifications';
8import { openModal } from '../../../actions/modal';
9import { showAlert } from '../../../actions/alerts';
2import { defineMessages, injectIntl } from 'react-intl';
3import ColumnSettings from '../components/column_settings';
4import { changeSetting } from '../../../actions/settings';
5import { setFilter } from '../../../actions/notifications'; 6import { clearNotifications, requestBrowserPermission } from '../../../actions/notifications';
7import { changeAlerts as changePushNotifications } from '../../../actions/push_notifications';
8import { openModal } from '../../../actions/modal';
1import { connect } from 'react-redux';
2import Upload from '../components/upload';
3import { undoUploadCompose, initMediaEditModal } from '../../../actions/compose';
4import { submitCompose } from '../../../actions/compose'; 5
6const mapStateToProps = (state, { id }) => ({
7 media: state.getIn(['compose', 'media_attachments']).find(item => item.get('id') === id),
1import { connect } from 'react-redux';
2import Upload from '../components/upload';
3import { undoUploadCompose, initMediaEditModal } from '../../../actions/compose'; 4import { submitCompose } from '../../../actions/compose';
5
6const mapStateToProps = (state, { id }) => ({
5 clearComposeSuggestions,
6 fetchComposeSuggestions,
7 selectComposeSuggestion,
8} from '../../../actions/compose'; 9
10const mapStateToProps = state => ({
11 suggestions: state.getIn(['compose', 'suggestions']),
It is always recommended to group all imports of a single path or source in a single import declaration. These usually happen in a codebase when multiple developers are working on the same codebase. It helps improving code refactoring and code readability as well.
// <!-- index.js -->
import calc from './calc.js'
import { add } from './calc.js'
console.log(add(1, 2))
// <!-- index.js -->
import calc, { add } from './calc.js'
console.log(add(1, 2))