mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
8b00a496e7
[web] Add a contact support message for custom subsbcriptions on React dash GitOrigin-RevId: e2a2bb27b4f1e70cbbe62f4c837fe63d81a820c2
41 lines
1.5 KiB
TypeScript
41 lines
1.5 KiB
TypeScript
import { useTranslation } from 'react-i18next'
|
|
import ContactSupport from './contact-support-for-custom-subscription'
|
|
import GroupSubscriptionMemberships from './group-subscription-memberships'
|
|
import InstitutionMemberships from './institution-memberships'
|
|
import FreePlan from './free-plan'
|
|
import ManagedPublishers from './managed-publishers'
|
|
import PersonalSubscription from './personal-subscription'
|
|
import ManagedGroupSubscriptions from './managed-group-subscriptions'
|
|
import ManagedInstitutions from './managed-institutions'
|
|
import { useSubscriptionDashboardContext } from '../../context/subscription-dashboard-context'
|
|
|
|
function SubscriptionDashboard() {
|
|
const { t } = useTranslation()
|
|
const { hasDisplayedSubscription, hasSubscription } =
|
|
useSubscriptionDashboardContext()
|
|
|
|
return (
|
|
<div className="container">
|
|
<div className="row">
|
|
<div className="col-md-8 col-md-offset-2">
|
|
<div className="card">
|
|
<div className="page-header">
|
|
<h1>{t('your_subscription')}</h1>
|
|
</div>
|
|
|
|
<PersonalSubscription />
|
|
<ManagedGroupSubscriptions />
|
|
<ManagedInstitutions />
|
|
<ManagedPublishers />
|
|
<GroupSubscriptionMemberships />
|
|
<InstitutionMemberships />
|
|
{!hasDisplayedSubscription &&
|
|
(hasSubscription ? <ContactSupport /> : <FreePlan />)}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default SubscriptionDashboard
|