Добавил поддержку установки Title страницы

This commit is contained in:
SleepWalker 2016-01-16 14:35:12 +02:00
parent 0f5781a3a7
commit 9aff4fb83a
5 changed files with 13 additions and 0 deletions

View File

@ -20,6 +20,7 @@
"intl-messageformat": "^1.1.0",
"react": "^0.14.0",
"react-dom": "^0.14.3",
"react-helmet": "^2.3.1",
"react-intl": "^2.0.0-pr-3",
"react-redux": "^4.0.0",
"react-router": "^2.0.0-rc4",

View File

@ -1,6 +1,7 @@
import React, { Component } from 'react';
import { FormattedMessage as Message } from 'react-intl';
import Helmet from 'react-helmet';
import buttons from 'components/ui/buttons.scss';
import { Panel, PanelBody, PanelFooter } from 'components/ui/Panel';
@ -15,6 +16,8 @@ export default class Activation extends Component {
render() {
return (
<div className={styles.signIn}>
<Helmet title="Activation" />
<Panel icon="arrowLeft" title={<Message {...messages.accountActivationTitle} />}>
<PanelBody>
<div className={styles.description}>

View File

@ -1,6 +1,7 @@
import React, { Component } from 'react';
import { FormattedMessage as Message } from 'react-intl';
import Helmet from 'react-helmet';
import buttons from 'components/ui/buttons.scss';
import icons from 'components/ui/icons.scss';
@ -16,6 +17,8 @@ export default class Login extends Component {
render() {
return (
<div className={styles.signIn}>
<Helmet title="Login" />
<Panel title={<Message {...messages.signInTitle} />}>
<PanelBody>
<Input icon="envelope" type="email" placeholder="E-mail or username" />

View File

@ -1,6 +1,7 @@
import React, { Component } from 'react';
import { FormattedMessage as Message } from 'react-intl';
import Helmet from 'react-helmet';
import buttons from 'components/ui/buttons.scss';
import icons from 'components/ui/icons.scss';
@ -16,6 +17,8 @@ export default class Permissions extends Component {
render() {
return (
<div className={styles.signIn}>
<Helmet title="App premissions" />
<Panel title={<Message {...messages.permissionsTitle} />}>
<PanelBody className={styles.authBody}>
<PanelBodyHeader className={styles.authBodyHeader}>

View File

@ -1,6 +1,7 @@
import React, { Component } from 'react';
import { FormattedMessage as Message } from 'react-intl';
import Helmet from 'react-helmet';
import buttons from 'components/ui/buttons.scss';
import icons from 'components/ui/icons.scss';
@ -16,6 +17,8 @@ export default class Register extends Component {
render() {
return (
<div className={styles.signIn}>
<Helmet title="Register" />
<Panel title={<Message {...messages.signUpTitle} />}>
<PanelBody>
{/* TODO: E-mail i18n*/}