Skip to content

Commit

Permalink
Removed trial announcement bar
Browse files Browse the repository at this point in the history
  • Loading branch information
jherman00 committed Apr 19, 2024
1 parent 2b4e518 commit 93a711c
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 1,704 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ import withGetCloudSubscription from 'components/common/hocs/cloud/with_get_clou

import CloudAnnualRenewalAnnouncementBar from './cloud_annual_renewal';
import CloudDelinquencyAnnouncementBar from './cloud_delinquency';
import CloudTrialAnnouncementBar from './cloud_trial_announcement_bar';
import CloudTrialEndAnnouncementBar from './cloud_trial_ended_announcement_bar';
import ConfigurationAnnouncementBar from './configuration_bar';
import AnnouncementBar from './default_announcement_bar';
import OverageUsersBanner from './overage_users_banner';
import PaymentAnnouncementBar from './payment_announcement_bar';
import AutoStartTrialModal from './show_start_trial_modal/show_start_trial_modal';
import ShowThreeDaysLeftTrialModal from './show_tree_days_left_trial_modal/show_three_days_left_trial_modal';
import TextDismissableBar from './text_dismissable_bar';
import UsersLimitsAnnouncementBar from './users_limits_announcement_bar';
import VersionBar from './version_bar';
Expand Down Expand Up @@ -64,24 +59,12 @@ class AnnouncementBarController extends React.PureComponent<Props> {
);
}

let paymentAnnouncementBar = null;
let cloudTrialAnnouncementBar = null;
let cloudTrialEndAnnouncementBar = null;
let cloudDelinquencyAnnouncementBar = null;
let cloudRenewalAnnouncementBar = null;
const notifyAdminDowngradeDelinquencyBar = null;
const toYearlyNudgeBannerDismissable = null;
let toPaidPlanNudgeBannerDismissable = null;
if (this.props.license?.Cloud === 'true') {
paymentAnnouncementBar = (
<PaymentAnnouncementBar/>
);
cloudTrialAnnouncementBar = (
<CloudTrialAnnouncementBar/>
);
cloudTrialEndAnnouncementBar = (
<CloudTrialEndAnnouncementBar/>
);
cloudDelinquencyAnnouncementBar = (
<CloudDelinquencyAnnouncementBar/>
);
Expand All @@ -91,13 +74,6 @@ class AnnouncementBarController extends React.PureComponent<Props> {
toPaidPlanNudgeBannerDismissable = (<ToPaidPlanBannerDismissable/>);
}

let autoStartTrialModal = null;
if (this.props.userIsAdmin) {
autoStartTrialModal = (
<AutoStartTrialModal/>
);
}

return (
<>
{adminConfiguredAnnouncementBar}
Expand All @@ -106,17 +82,12 @@ class AnnouncementBarController extends React.PureComponent<Props> {
license={this.props.license}
userIsAdmin={this.props.userIsAdmin}
/>
{paymentAnnouncementBar}
{cloudTrialAnnouncementBar}
{cloudTrialEndAnnouncementBar}
{cloudDelinquencyAnnouncementBar}
{cloudRenewalAnnouncementBar}
{notifyAdminDowngradeDelinquencyBar}
{toYearlyNudgeBannerDismissable}
{toPaidPlanNudgeBannerDismissable}
{this.props.license?.Cloud !== 'true' && <OverageUsersBanner/>}
{autoStartTrialModal}
<ShowThreeDaysLeftTrialModal/>
<VersionBar/>
<ConfigurationAnnouncementBar
config={this.props.config}
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 93a711c

Please sign in to comment.