fix types.
Этот коммит содержится в:
@@ -26,7 +26,7 @@ export default function useControlSelfHostedExpansionModal(options: HookOptions)
|
|||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const currentUser = useSelector(getCurrentUser);
|
const currentUser = useSelector(getCurrentUser);
|
||||||
const controlModal = useControlModal({
|
const controlModal = useControlModal({
|
||||||
modalId: ModalIdentifiers.EXPANSION_IN_PROGRESS,
|
modalId: ModalIdentifiers.SELF_HOSTED_EXPANSION,
|
||||||
dialogType: SelfHostedExpansionModal,
|
dialogType: SelfHostedExpansionModal,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ export default function useControlSelfHostedExpansionModal(options: HookOptions)
|
|||||||
// is already trying to purchase. Notify them of this
|
// is already trying to purchase. Notify them of this
|
||||||
// and request the exit that purchase flow before attempting again.
|
// and request the exit that purchase flow before attempting again.
|
||||||
dispatch(openModal({
|
dispatch(openModal({
|
||||||
modalId: ModalIdentifiers.PURCHASE_IN_PROGRESS,
|
modalId: ModalIdentifiers.EXPANSION_IN_PROGRESS,
|
||||||
dialogType: PurchaseInProgressModal,
|
dialogType: PurchaseInProgressModal,
|
||||||
dialogProps: {
|
dialogProps: {
|
||||||
purchaserEmail: currentUser.email,
|
purchaserEmail: currentUser.email,
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ export default function SelfHostedExpansionModal() {
|
|||||||
show={show}
|
show={show}
|
||||||
ariaLabelledBy='self_hosted_expansion_modal_title'
|
ariaLabelledBy='self_hosted_expansion_modal_title'
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
dispatch(closeModal(ModalIdentifiers.EXPANSION_IN_PROGRESS));
|
dispatch(closeModal(ModalIdentifiers.SELF_HOSTED_EXPANSION));
|
||||||
resetToken();
|
resetToken();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -460,6 +460,7 @@ export const ModalIdentifiers = {
|
|||||||
SCREENING_IN_PROGRESS: 'screening_in_progress',
|
SCREENING_IN_PROGRESS: 'screening_in_progress',
|
||||||
CONFIRM_SWITCH_TO_YEARLY: 'confirm_switch_to_yearly',
|
CONFIRM_SWITCH_TO_YEARLY: 'confirm_switch_to_yearly',
|
||||||
EXPANSION_IN_PROGRESS: 'expansion_in_progress',
|
EXPANSION_IN_PROGRESS: 'expansion_in_progress',
|
||||||
|
SELF_HOSTED_EXPANSION: 'self_hosted_expansion',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const UserStatuses = {
|
export const UserStatuses = {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user