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-2171: Add Missing Page Title to Upgrade Plan Hub Page #604

Merged
merged 6 commits into from Sep 21, 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

only set title once

  • Loading branch information
fcjr committed Sep 18, 2020
commit 389ef166778dd82ac2899d43d97b8aa065a61436
@@ -11,7 +11,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0
*/

import React, { useRef, Fragment } from 'react';
import React, { Fragment, useRef, useEffect } from 'react';
import ClassNames from 'classnames';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
@@ -119,8 +119,10 @@ const premiumAlreadyProtectedButton = () => (
* @memberof HubComponents
*/
const UpgradePlanView = (props) => {
const title = t('hub_upgrade_page_title');
window.document.title = title;
useEffect(() => {
const title = t('hub_upgrade_page_title');
window.document.title = title;
}, []);

const {
protection_level,
ProTip! Use n and p to navigate between commits in a pull request.