Improve Redux types part 3/Remove old ActionFunc (#25983)
* Remove ActionFunc from actions/apps * Remove ActionFunc from actions/channel_actions * actions/cloud * actions/hosted_customer * actions/integration_actions * actions/marketplace * Replace ActionFuncVariantDoNotUse with ThunkActionFunc * actions/apps * actions/new_post and actions/post_actions * actions/status_actions * actions/team_actions * actions/views/drafts * actions/commands * components/posts/actions * actions/views/login * components/channel_layout/channel_identifier_router/actions * hooks/usePreference * components/interactive_dialog/interactive_dialog * Various tests * components/team_controller * components/threading/thread_viewer * mattermost-redux/actions/admin * mattermost-redux/actions/boards * mattermost-redux/actions/channel_categories * mattermost-redux/actions/channels * mattermost-redux/actions/emojis * mattermost-redux/actions/errors * mattermost-redux/actions/files * mattermost-redux/actions/general * mattermost-redux/actions/preferences * mattermost-redux/actions/search * mattermost-redux/actions/teams * mattermost-redux/actions/users * mattermost-redux/actions/websocket * Remove ActionFunc * Remove TODO comments that I'm not going to address * Remove another TODO comment * And one last one
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
79e961e239
Коммит
8a869b0623
@@ -6,8 +6,6 @@ import type {ReactNode} from 'react';
|
||||
import {useIntl} from 'react-intl';
|
||||
import {useDispatch} from 'react-redux';
|
||||
|
||||
import type {DispatchFunc} from 'mattermost-redux/types/actions';
|
||||
|
||||
import {requestCloudTrial, validateWorkspaceBusinessEmail, getCloudLimits} from 'actions/cloud';
|
||||
import {trackEvent} from 'actions/telemetry_actions';
|
||||
import {openModal, closeModal} from 'actions/views/modals';
|
||||
@@ -52,7 +50,7 @@ const CloudStartTrialButton = ({
|
||||
disabled = false,
|
||||
}: CloudStartTrialBtnProps) => {
|
||||
const {formatMessage} = useIntl();
|
||||
const dispatch = useDispatch<DispatchFunc>();
|
||||
const dispatch = useDispatch();
|
||||
const subscription = useGetSubscription();
|
||||
const [openBusinessEmailModal, setOpenBusinessEmailModal] = useState(false);
|
||||
const [status, setLoadStatus] = useState(TrialLoadStatus.NotStarted);
|
||||
|
||||
Ссылка в новой задаче
Block a user