Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-2072: 8.5.2 Metrics #576

Merged
merged 3 commits into from Jul 6, 2020
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Fix linting errors

  • Loading branch information
benstrumeyer committed Jul 1, 2020
commit b9aa339bffda4cacd1540fe27d0798df592adcc4
@@ -186,7 +186,7 @@ const UpgradePlanView = (props) => {
{`${t('hub_upgrade_to')} Plus`}
</a>
);
}
};

const premiumCTAButton = (position) => {
const utm_campaign = position === 'top' ? 'c_3' : 'c_4';
@@ -196,16 +196,16 @@ const UpgradePlanView = (props) => {
<a className="button button-premium" href={premiumCheckoutLink} target="_blank" rel="noopener noreferrer" title="Upgrade to Premium">
{`${t('hub_upgrade_to')} Premium`}
</a>
)
}
);
};

const plusButtonTop = () => isPlus ? plusAlreadyProtectedButton() : plusCTAButton('top');
const plusButtonTop = () => (isPlus ? plusAlreadyProtectedButton() : plusCTAButton('top'));

const plusButtonBottom = () => isPlus ? plusAlreadyProtectedButton() : plusCTAButton('bottom')
const plusButtonBottom = () => (isPlus ? plusAlreadyProtectedButton() : plusCTAButton('bottom'));

const premiumButtonTop = () => isPremium ? premiumAlreadyProtectedButton() : premiumCTAButton('top');
const premiumButtonTop = () => (isPremium ? premiumAlreadyProtectedButton() : premiumCTAButton('top'));

const premiumButtonBottom = () => isPremium ? premiumAlreadyProtectedButton() : premiumCTAButton('bottom');
const premiumButtonBottom = () => (isPremium ? premiumAlreadyProtectedButton() : premiumCTAButton('bottom'));

const toggleSwitch = (mobileView, secondToggle) => {
const toggleSwitchClassNames = ClassNames('small-12 text-center columns', {
ProTip! Use n and p to navigate between commits in a pull request.