import React, {Component} from 'react'; import Link from '../base/Link'; import Modal from '../base/Modal'; import ModalBody from '../base/ModalBody'; import ModalHeader from '../base/ModalHeader'; import ModalFooter from '../base/ModalFooter'; import * as session from '../../../sync/session'; import {trackEvent} from '../../../analytics'; let hidePaymentNotificationUntilNextLaunch = false; class PaymentNotificationModal extends Component { _handleHide = () => { this.hide(); }; show () { // Don't trigger automatically if user has dismissed it already if (hidePaymentNotificationUntilNextLaunch) { return; } hidePaymentNotificationUntilNextLaunch = true; this.modal.show(); } hide () { trackEvent('Billing', 'Trial Ended', 'Cancel'); this.modal.hide(); } render () { return ( this.modal = m}> Free Trial has Ended

Hi {session.getFirstName()},

Your Insomnia Plus trial has ended. please enter your billing information to continue using your account.


Enter Billing Info

 
) } } PaymentNotificationModal.propTypes = {}; export default PaymentNotificationModal;