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. --- src/components/TrialActivationInfoBar.js | 94 -------------------------------- 1 file changed, 94 deletions(-) delete mode 100644 src/components/TrialActivationInfoBar.js (limited to 'src/components/TrialActivationInfoBar.js') diff --git a/src/components/TrialActivationInfoBar.js b/src/components/TrialActivationInfoBar.js deleted file mode 100644 index 77ab97565..000000000 --- a/src/components/TrialActivationInfoBar.js +++ /dev/null @@ -1,94 +0,0 @@ -import React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import { defineMessages, intlShape } from 'react-intl'; -import ms from 'ms'; -import injectSheet from 'react-jss'; -import classnames from 'classnames'; - -import InfoBar from './ui/InfoBar'; - -const messages = defineMessages({ - message: { - id: 'infobar.trialActivated', - defaultMessage: '!!!Your trial was successfully activated. Happy messaging!', - }, -}); - -const styles = { - notification: { - height: 'auto', - position: 'absolute', - top: -50, - transition: 'top 0.3s', - zIndex: 500, - width: 'calc(100% - 300px)', - }, - show: { - top: 0, - }, -}; - -@injectSheet(styles) -class TrialActivationInfoBar extends Component { - static propTypes = { - // eslint-disable-next-line - classes: PropTypes.object.isRequired, - }; - - static contextTypes = { - intl: intlShape, - }; - - state = { - showing: false, - removed: false, - } - - componentDidMount() { - setTimeout(() => { - this.setState({ - showing: true, - }); - }, 0); - - setTimeout(() => { - this.setState({ - showing: false, - }); - }, ms('6s')); - - setTimeout(() => { - this.setState({ - removed: true, - }); - }, ms('7s')); - } - - render() { - const { classes } = this.props; - const { showing, removed } = this.state; - const { intl } = this.context; - - if (removed) return null; - - return ( -
- - - {intl.formatMessage(messages.message)} - -
- ); - } -} - -export default TrialActivationInfoBar; -- cgit v1.2.3-70-g09d2