MM-51359 Replace makeGetUserTimezone selector with getCurrentTimezone and similar selectors (#22832)

Этот коммит содержится в:
Harrison Healey
2023-04-05 14:57:19 -04:00
коммит произвёл GitHub
родитель 7029d88443
Коммит 54af9a7c7d
23 изменённых файлов: 219 добавлений и 227 удалений

Просмотреть файл

@@ -11,12 +11,12 @@ import {Client4} from 'mattermost-redux/client';
import {Preferences} from 'mattermost-redux/constants';
import {get, getBool, getInt} from 'mattermost-redux/selectors/entities/preferences';
import {getCurrentTimezone} from 'mattermost-redux/selectors/entities/timezone';
import {getCurrentUser, getStatusForUserId} from 'mattermost-redux/selectors/entities/users';
import {openModal} from 'actions/views/modals';
import {setStatusDropdown} from 'actions/views/status_dropdown';
import {getCurrentUserTimezone} from 'selectors/general';
import {makeGetCustomStatus, isCustomStatusEnabled, showStatusDropdownPulsatingDot, isCustomStatusExpired} from 'selectors/views/custom_status';
import {isStatusDropdownOpen} from 'selectors/views/status_dropdown';
import {GenericAction} from 'mattermost-redux/types/actions';
@@ -53,7 +53,7 @@ function makeMapStateToProps() {
isStatusDropdownOpen: isStatusDropdownOpen(state),
showCustomStatusPulsatingDot: showStatusDropdownPulsatingDot(state),
showCompleteYourProfileTour,
timezone: getCurrentUserTimezone(state),
timezone: getCurrentTimezone(state),
};
};
}