|
|
|
@ -43,12 +43,13 @@ export const CancelSubPopup = (props: Props) => { |
|
|
|
|
|
|
|
|
|
|
|
const { |
|
|
|
const { |
|
|
|
access_to, |
|
|
|
access_to, |
|
|
|
|
|
|
|
is_gpay, |
|
|
|
lexic, |
|
|
|
lexic, |
|
|
|
option_sys_name, |
|
|
|
option_sys_name, |
|
|
|
} = subscribe |
|
|
|
} = subscribe |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<Modal isOpen={isModalOpen} withCloseButton={false}> |
|
|
|
<Modal isOpen={isModalOpen} withCloseButton={is_gpay}> |
|
|
|
<Wrapper> |
|
|
|
<Wrapper> |
|
|
|
{isSubCanceled || error ? ( |
|
|
|
{isSubCanceled || error ? ( |
|
|
|
<ScNotificationPopup> |
|
|
|
<ScNotificationPopup> |
|
|
|
@ -65,32 +66,40 @@ export const CancelSubPopup = (props: Props) => { |
|
|
|
</HeaderTitle> |
|
|
|
</HeaderTitle> |
|
|
|
</Header> |
|
|
|
</Header> |
|
|
|
<Body> |
|
|
|
<Body> |
|
|
|
<Text> |
|
|
|
{is_gpay ? ( |
|
|
|
<T9n t='if_you_cancel' /> |
|
|
|
<Text> |
|
|
|
</Text> |
|
|
|
<T9n t='is_gpay' /> |
|
|
|
<ScCancelSub> |
|
|
|
</Text> |
|
|
|
{option_sys_name && `${option_sys_name[0].toUpperCase()}${option_sys_name.slice(1, option_sys_name.length)}`} — <T9n t={lexic} /> |
|
|
|
) : ( |
|
|
|
</ScCancelSub> |
|
|
|
<> |
|
|
|
<Text> |
|
|
|
<Text> |
|
|
|
<T9n t='after_canceling' /> |
|
|
|
<T9n t='if_you_cancel' /> |
|
|
|
|
|
|
|
</Text> |
|
|
|
|
|
|
|
<ScCancelSub> |
|
|
|
|
|
|
|
{option_sys_name && `${option_sys_name[0].toUpperCase()}${option_sys_name.slice(1, option_sys_name.length)}`} — <T9n t={lexic} /> |
|
|
|
|
|
|
|
</ScCancelSub> |
|
|
|
|
|
|
|
<Text> |
|
|
|
|
|
|
|
<T9n t='after_canceling' /> |
|
|
|
|
|
|
|
|
|
|
|
<b>{access_to && format(new Date(access_to), 'dd.MM.yyyy')}</b> |
|
|
|
<b>{access_to && format(new Date(access_to), 'dd.MM.yyyy')}</b> |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Footer> |
|
|
|
<Footer> |
|
|
|
<ScStillCancelBtn |
|
|
|
<ScStillCancelBtn |
|
|
|
onClick={() => cancelSub()} |
|
|
|
onClick={() => cancelSub()} |
|
|
|
isFetching={isFetching} |
|
|
|
isFetching={isFetching} |
|
|
|
> |
|
|
|
> |
|
|
|
{isFetching ? ( |
|
|
|
{isFetching ? ( |
|
|
|
<ArrowLoader /> |
|
|
|
<ArrowLoader /> |
|
|
|
) : ( |
|
|
|
) : ( |
|
|
|
<T9n t='still_cancel' /> |
|
|
|
<T9n t='still_cancel' /> |
|
|
|
)} |
|
|
|
)} |
|
|
|
</ScStillCancelBtn> |
|
|
|
</ScStillCancelBtn> |
|
|
|
<ScSaveSubBtn onClick={() => handleModalClose()}> |
|
|
|
<ScSaveSubBtn onClick={() => handleModalClose()}> |
|
|
|
<T9n t='save_sub' /> |
|
|
|
<T9n t='save_sub' /> |
|
|
|
</ScSaveSubBtn> |
|
|
|
</ScSaveSubBtn> |
|
|
|
</Footer> |
|
|
|
</Footer> |
|
|
|
|
|
|
|
</> |
|
|
|
|
|
|
|
)} |
|
|
|
</Body> |
|
|
|
</Body> |
|
|
|
</> |
|
|
|
</> |
|
|
|
)} |
|
|
|
)} |
|
|
|
|