Skip to content

Commit

Permalink
feat: AdvancedContactModal
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Oct 17, 2024
1 parent 99c7c85 commit ab03ae2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
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);

Check failure on line 17 in apps/meteor/client/views/omnichannel/contactInfo/AdvancedContactModal.tsx

View workflow job for this annotation

GitHub Actions / 🔎 Code Check / Code Lint

'shouldShowUpsell' is assigned a value but never used

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.
6 changes: 5 additions & 1 deletion packages/i18n/src/locales/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -6639,5 +6639,9 @@
"Sidepanel_navigation": "Secondary navigation for teams",
"Sidepanel_navigation_description": "Display channels and/or discussions associated with teams by default. This allows team owners to customize communication methods to best meet their team’s needs. This is currently in feature preview and will be a premium capability once fully released.",
"Show_channels_description": "Show team channels in second sidebar",
"Show_discussions_description": "Show team discussions in second sidebar"
"Show_discussions_description": "Show team discussions in second sidebar",
"Advanced_contact_profile": "Advanced contact profile",
"Advanced_contact_profile_description": "Manage multiple emails and phone numbers for a single contact, enabling a comprehensive multi-channel history that keeps you well-informed and improves communication efficiency.",
"Add_contact": "Add contact",
"Add_to_contact_or_enable_verification_description": "Add to contact list manually or <1>enable verification</1> using multi-factor authentication."
}

0 comments on commit ab03ae2

Please sign in to comment.