|
|
@@ -8,16 +8,25 @@ import PersonalSubscription from './personal-subscription'
|
|
|
import ManagedGroupSubscriptions from './managed-group-subscriptions'
|
|
|
import ManagedInstitutions from './managed-institutions'
|
|
|
import { useSubscriptionDashboardContext } from '../../context/subscription-dashboard-context'
|
|
|
+import getMeta from '../../../../utils/meta'
|
|
|
+import { Alert } from 'react-bootstrap'
|
|
|
|
|
|
function SubscriptionDashboard() {
|
|
|
const { t } = useTranslation()
|
|
|
const { hasDisplayedSubscription, hasSubscription } =
|
|
|
useSubscriptionDashboardContext()
|
|
|
|
|
|
+ const fromPlansPage: boolean = getMeta('ol-fromPlansPage')
|
|
|
+
|
|
|
return (
|
|
|
<div className="container">
|
|
|
<div className="row">
|
|
|
<div className="col-md-8 col-md-offset-2">
|
|
|
+ {fromPlansPage && (
|
|
|
+ <Alert bsStyle="warning">
|
|
|
+ {t('you_already_have_a_subscription')}
|
|
|
+ </Alert>
|
|
|
+ )}
|
|
|
<div className="card">
|
|
|
<div className="page-header">
|
|
|
<h1>{t('your_subscription')}</h1>
|