*/
// @flow
import React from 'react';
+import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import { addGlobalErrorMessage } from '../../../store/globalMessages/duck';
currentUser: Object,
extension: {
key: string,
- title: string
+ name: string
},
location: { hash: string },
onFail: string => void,
render() {
return (
<div>
+ <Helmet title={this.props.extension.name} />
<div ref={container => (this.container = container)} />
</div>
);
*/
// @flow
import React from 'react';
-import Helmet from 'react-helmet';
import GlobalPageExtension from './GlobalPageExtension';
-import { translate } from '../../../helpers/l10n';
export default function PortfoliosPage(props: Object) {
return (
<div>
- <Helmet title={translate('portfolios.page')} />
<GlobalPageExtension
location={props.location}
params={{ pluginKey: 'governance', extensionKey: 'portfolios' }}
return (
<div className="page page-limited">
- <Helmet title={translate('code')} />
+ <Helmet title={translate('code.page')} />
{error &&
<div className="alert alert-danger">
// but react wants it to be there to unmount it
return (
<div>
- <Helmet title={translate('rules')} />
+ <Helmet title={translate('coding_rules.page')} />
<div ref="container" />
</div>
);
}
render() {
+ const title = translate('organization.delete');
return (
<div className="page page-limited">
- <Helmet title={translate('delete')} />
+ <Helmet title={title} />
<header className="page-header">
- <h1 className="page-title">{translate('organization.delete')}</h1>
+ <h1 className="page-title">{title}</h1>
<div className="page-description">{translate('organization.delete.description')}</div>
</header>
};
render() {
+ const title = translate('organization.edit');
return (
<div className="page page-limited">
- <Helmet title={translate('edit')} />
+ <Helmet title={title} />
<header className="page-header">
- <h1 className="page-title">{translate('organization.edit')}</h1>
+ <h1 className="page-title">{title}</h1>
</header>
<form onSubmit={this.handleSubmit}>
className="page page-limited"
>
<HelmetWrapper
- title="delete"
+ title="organization.delete"
/>
<header
className="page-header"
className="page page-limited"
>
<HelmetWrapper
- title="delete"
+ title="organization.delete"
/>
<header
className="page-header"
className="page page-limited"
>
<HelmetWrapper
- title="delete"
+ title="organization.delete"
/>
<header
className="page-header"
className="page page-limited"
>
<HelmetWrapper
- title="edit"
+ title="organization.edit"
/>
<header
className="page-header"
className="page page-limited"
>
<HelmetWrapper
- title="edit"
+ title="organization.edit"
/>
<header
className="page-header"
className="page page-limited"
>
<HelmetWrapper
- title="edit"
+ title="organization.edit"
/>
<header
className="page-header"