From 45373f655f68fdd0b320cde175b6108454ad4731 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sat, 17 Jul 2021 20:32:22 +0530 Subject: Removed Franz paid plans features: - serviceLimit - planSelection - trialStatusBar and other Franz features that were for different tiers of subscription. --- .../trialStatusBar/components/TrialStatusBar.js | 135 --------------------- 1 file changed, 135 deletions(-) delete mode 100644 src/features/trialStatusBar/components/TrialStatusBar.js (limited to 'src/features/trialStatusBar/components/TrialStatusBar.js') diff --git a/src/features/trialStatusBar/components/TrialStatusBar.js b/src/features/trialStatusBar/components/TrialStatusBar.js deleted file mode 100644 index b8fe4acc9..000000000 --- a/src/features/trialStatusBar/components/TrialStatusBar.js +++ /dev/null @@ -1,135 +0,0 @@ -import React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import { observer } from 'mobx-react'; -import injectSheet from 'react-jss'; -import { defineMessages, intlShape } from 'react-intl'; -import { Icon } from '@meetfranz/ui'; -import { mdiArrowRight, mdiWindowClose } from '@mdi/js'; -import classnames from 'classnames'; - -import ProgressBar from './ProgressBar'; - -const messages = defineMessages({ - restTime: { - id: 'feature.trialStatusBar.restTime', - defaultMessage: '!!!Your Free Franz {plan} Trial ends in {time}.', - }, - expired: { - id: 'feature.trialStatusBar.expired', - defaultMessage: '!!!Your free Franz {plan} Trial has expired, please upgrade your account.', - }, - cta: { - id: 'feature.trialStatusBar.cta', - defaultMessage: '!!!Upgrade now', - }, -}); - -const styles = theme => ({ - root: { - background: theme.trialStatusBar.bar.background, - width: '100%', - height: 25, - order: 10, - display: 'flex', - alignItems: 'center', - fontSize: 12, - padding: [0, 10], - justifyContent: 'flex-end', - }, - ended: { - background: theme.styleTypes.warning.accent, - color: theme.styleTypes.warning.contrast, - }, - message: { - marginLeft: 20, - }, - action: { - marginLeft: 20, - fontSize: 12, - color: theme.colorText, - textDecoration: 'underline', - display: 'flex', - - '& svg': { - margin: [1, 2, 0, 0], - }, - }, -}); - -@injectSheet(styles) @observer -class TrialStatusBar extends Component { - static propTypes = { - planName: PropTypes.string.isRequired, - percent: PropTypes.number.isRequired, - upgradeAccount: PropTypes.func.isRequired, - hideOverlay: PropTypes.func.isRequired, - trialEnd: PropTypes.string.isRequired, - hasEnded: PropTypes.bool.isRequired, - classes: PropTypes.object.isRequired, - }; - - static contextTypes = { - intl: intlShape, - }; - - render() { - const { - planName, - percent, - upgradeAccount, - hideOverlay, - trialEnd, - hasEnded, - classes, - } = this.props; - - const { intl } = this.context; - - return ( -
- - {' '} - - {!hasEnded ? ( - intl.formatMessage(messages.restTime, { - plan: planName, - time: trialEnd, - }) - ) : ( - intl.formatMessage(messages.expired, { - plan: planName, - }) - )} - - - -
- ); - } -} - -export default TrialStatusBar; -- cgit v1.2.3-70-g09d2