Rename modal -> modals

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2022-02-02 14:33:12 +01:00
parent e0f0370579
commit a041a4452b
49 changed files with 53 additions and 53 deletions

View File

@@ -26,7 +26,7 @@ const mapStateToProps = state => ({
isUploading: state.getIn(['compose', 'is_uploading']),
showSearch: state.getIn(['search', 'submitted']) && !state.getIn(['search', 'hidden']),
anyMedia: state.getIn(['compose', 'media_attachments']).size > 0,
isModalOpen: state.get('modal').size && state.get('modal').last().modalType === 'COMPOSE',
isModalOpen: state.get('modals').size && state.get('modals').last().modalType === 'COMPOSE',
maxTootChars: state.getIn(['instance', 'configuration', 'statuses', 'max_characters']),
scheduledAt: state.getIn(['compose', 'schedule']),
scheduledStatusCount: state.get('scheduled_statuses').size,

View File

@@ -1,12 +1,12 @@
import { connect } from 'react-redux';
import { changeComposeVisibility } from '../../../actions/compose';
import { openModal, closeModal } from '../../../actions/modal';
import { openModal, closeModal } from '../../../actions/modals';
import { isUserTouching } from '../../../is_mobile';
import PrivacyDropdown from '../components/privacy_dropdown';
const mapStateToProps = state => ({
isModalOpen: state.get('modal').size && state.get('modal').last().modalType === 'ACTIONS',
isModalOpen: state.get('modals').size && state.get('modals').last().modalType === 'ACTIONS',
value: state.getIn(['compose', 'privacy']),
});

View File

@@ -1,6 +1,6 @@
import { connect } from 'react-redux';
import { openModal } from 'soapbox/actions/modal';
import { openModal } from 'soapbox/actions/modals';
import { makeGetStatus } from 'soapbox/selectors';
import { getFeatures } from 'soapbox/utils/features';

View File

@@ -3,7 +3,7 @@ import { connect } from 'react-redux';
import { undoUploadCompose, changeUploadCompose } from '../../../actions/compose';
import { submitCompose } from '../../../actions/compose';
import { openModal } from '../../../actions/modal';
import { openModal } from '../../../actions/modals';
import Upload from '../components/upload';
const mapStateToProps = (state, { id }) => ({