-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99c7c85
commit ab03ae2
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
apps/meteor/client/views/omnichannel/contactInfo/AdvancedContactModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { useTranslation } from '@rocket.chat/ui-contexts'; | ||
import React from 'react'; | ||
|
||
import { getURL } from '../../../../app/utils/client/getURL'; | ||
import GenericUpsellModal from '../../../components/GenericUpsellModal'; | ||
import { useUpsellActions } from '../../../components/GenericUpsellModal/hooks'; | ||
// import { useHasLicenseModule } from '../../../hooks/useHasLicenseModule'; | ||
|
||
type AdvancedContactModalProps = { | ||
onCancel: () => void; | ||
}; | ||
|
||
const AdvancedContactModal = ({ onCancel }: AdvancedContactModalProps) => { | ||
const t = useTranslation(); | ||
|
||
const hasLicense = false; | ||
const { shouldShowUpsell, handleManageSubscription } = useUpsellActions(hasLicense); | ||
|
||
return ( | ||
<GenericUpsellModal | ||
title={t('Advanced_contact_profile')} | ||
description={t('Advanced_contact_profile_description')} | ||
img={getURL('images/single-contact-id-upsell.png')} | ||
onClose={onCancel} | ||
onCancel={onCancel} | ||
onConfirm={handleManageSubscription} | ||
/> | ||
); | ||
}; | ||
|
||
export default AdvancedContactModal; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters