|
@@ -3,6 +3,7 @@ import { postJSON } from '../../../../infrastructure/fetch-json'
|
|
|
import { reactivateSubscriptionUrl } from '../../data/subscription-url'
|
|
import { reactivateSubscriptionUrl } from '../../data/subscription-url'
|
|
|
import useAsync from '../../../../shared/hooks/use-async'
|
|
import useAsync from '../../../../shared/hooks/use-async'
|
|
|
import { useLocation } from '../../../../shared/hooks/use-location'
|
|
import { useLocation } from '../../../../shared/hooks/use-location'
|
|
|
|
|
+import getMeta from '../../../../utils/meta'
|
|
|
|
|
|
|
|
function ReactivateSubscription() {
|
|
function ReactivateSubscription() {
|
|
|
const { t } = useTranslation()
|
|
const { t } = useTranslation()
|
|
@@ -17,6 +18,11 @@ function ReactivateSubscription() {
|
|
|
location.reload()
|
|
location.reload()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // Don't show the button to reactivate the subscription for managed users
|
|
|
|
|
+ if (getMeta('ol-cannot-reactivate-subscription')) {
|
|
|
|
|
+ return null
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<button
|
|
<button
|
|
|
type="button"
|
|
type="button"
|