Skip to content

Commit

Permalink
Merge branch 'develop' into regression/enabled-migrated-apps
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] committed Mar 6, 2023
2 parents b217eaf + 4d22ed0 commit 83ccd22
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ const EnterpriseDepartmentsModal = ({ closeModal }: { closeModal: () => void }):
closeModal();
};

const tabTypeIsUpgradeYourPlan =
tabType === 'go-fully-featured' || tabType === 'go-fully-featured-registered' || tabType === 'upgrade-your-plan';
const isTypeUpgradeYourPlan = ['go-fully-featured', 'go-fully-featured-registered'].includes(tabType || '');

const talkToExpertLink =
'https://www.rocket.chat/sales-contact?utm_source=rocketchat_app&utm_medium=multiple_queues&utm_campaign=in_product_ctas';
Expand All @@ -48,17 +47,15 @@ const EnterpriseDepartmentsModal = ({ closeModal }: { closeModal: () => void }):
<Box fontSize={20} fontWeight={700} lineHeight={28} mbe={28}>
{t('Enterprise_Departments_title')}
</Box>
{tabType === 'go-fully-featured' || tabType === 'go-fully-featured-registered' || tabType === 'upgrade-your-plan'
? t('Enterprise_Departments_description_upgrade')
: t('Enterprise_Departments_description_free_trial')}
{isTypeUpgradeYourPlan ? t('Enterprise_Departments_description_free_trial') : t('Enterprise_Departments_description_upgrade')}
</Modal.Content>
<Modal.Footer>
{hasPermission('view-statistics') ? (
<Modal.FooterControllers>
<Button is='a' href={talkToExpertLink} external onClick={onClose} data-qa-id='btn-talk-to-sales'>
{t('Talk_to_an_expert')}
</Button>
{tabTypeIsUpgradeYourPlan ? (
{isTypeUpgradeYourPlan ? (
<Button is='a' href={freeTrialLink} external primary data-qa-id='upgrade-now'>
{t('Start_free_trial')}
</Button>
Expand Down

0 comments on commit 83ccd22

Please sign in to comment.