diff --git a/src/components/auth/AuthTitle.jsx b/src/components/auth/AuthTitle.jsx new file mode 100644 index 0000000..109b2a1 --- /dev/null +++ b/src/components/auth/AuthTitle.jsx @@ -0,0 +1,12 @@ +import React from 'react'; + +import Helmet from 'react-helmet'; +import { FormattedMessage as Message } from 'react-intl'; + +export default function AuthTitle({title}) { + return ( + + {(msg) => {msg}} + + ); +} diff --git a/src/components/auth/activation/Activation.intl.json b/src/components/auth/activation/Activation.intl.json new file mode 100644 index 0000000..ee8713f --- /dev/null +++ b/src/components/auth/activation/Activation.intl.json @@ -0,0 +1,7 @@ +{ + "accountActivationTitle": "Account activation", + "activationMailWasSent": "Please check {email} for the message with the last registration step", + "confirmEmail": "Confirm E-mail", + "didNotReceivedEmail": "Did not received E-mail?", + "enterTheCode": "Enter the code from E-mail here" +} diff --git a/src/components/auth/activation/Activation.jsx b/src/components/auth/activation/Activation.jsx index 5a56fe0..13f359b 100644 --- a/src/components/auth/activation/Activation.jsx +++ b/src/components/auth/activation/Activation.jsx @@ -1,61 +1,18 @@ import React from 'react'; import { FormattedMessage as Message } from 'react-intl'; -import Helmet from 'react-helmet'; -import buttons from 'components/ui/buttons.scss'; -import { Input } from 'components/ui/form'; +import { Button } from 'components/ui/form'; +import AuthTitle from 'components/auth/AuthTitle'; -import BaseAuthBody from 'components/auth/BaseAuthBody'; -import styles from './activation.scss'; -import messages from './Activation.messages'; - -class Body extends BaseAuthBody { - static displayName = 'ActivationBody'; - static panelId = 'activation'; - - autoFocusField = 'key'; - - render() { - return ( -
- {this.renderErrors()} - -
-
- -
- {this.context.user.email}) - }} /> -
-
-
- -
-
- ); - } -} +import messages from './Activation.intl.json'; +import Body from './ActivationBody'; export default function Activation() { return { - Title: () => ( // TODO: separate component for PageTitle - - {(msg) => {msg}} - - ), + Title: () => , Body, - Footer: () => ( - - ), + Footer: () => +
); diff --git a/src/components/auth/appInfo/AppInfo.messages.js b/src/components/auth/appInfo/AppInfo.messages.js deleted file mode 100644 index be07f29..0000000 --- a/src/components/auth/appInfo/AppInfo.messages.js +++ /dev/null @@ -1,8 +0,0 @@ -import { defineMessages } from 'react-intl'; - -export default defineMessages({ - goToAuth: { - id: 'goToAuth', - defaultMessage: 'Go to auth' - } -}); diff --git a/src/components/auth/changePassword/ChangePassword.intl.json b/src/components/auth/changePassword/ChangePassword.intl.json new file mode 100644 index 0000000..3770687 --- /dev/null +++ b/src/components/auth/changePassword/ChangePassword.intl.json @@ -0,0 +1,9 @@ +{ + "changePasswordTitle": "Change password", + "changePasswordMessage": "To enhance the security of your account, please change your password.", + "skipThisStep": "Skip password changing", + "change": "Change", + "currentPassword": "Enter current password", + "newPassword": "Enter new password", + "newRePassword": "Repeat new password" +} diff --git a/src/components/auth/changePassword/ChangePassword.jsx b/src/components/auth/changePassword/ChangePassword.jsx index b87da0a..e2c5cb1 100644 --- a/src/components/auth/changePassword/ChangePassword.jsx +++ b/src/components/auth/changePassword/ChangePassword.jsx @@ -1,76 +1,18 @@ import React, { PropTypes } from 'react'; import { FormattedMessage as Message } from 'react-intl'; -import Helmet from 'react-helmet'; -import buttons from 'components/ui/buttons.scss'; -import { Input } from 'components/ui/form'; -import BaseAuthBody from 'components/auth/BaseAuthBody'; -import icons from 'components/ui/icons.scss'; +import { Button } from 'components/ui/form'; +import AuthTitle from 'components/auth/AuthTitle'; -import messages from './ChangePassword.messages'; -import styles from './changePassword.scss'; - -class Body extends BaseAuthBody { - static displayName = 'ChangePasswordBody'; - static panelId = 'changePassword'; - - autoFocusField = 'password'; - - render() { - return ( -
- {this.renderErrors()} - -
- -
- -

- -

- - - - - - -
- ); - } -} +import Body from './ChangePasswordBody'; +import messages from './ChangePassword.intl.json'; export default function ChangePassword() { const componentsMap = { - Title: () => ( // TODO: separate component for PageTitle - - {(msg) => {msg}} - - ), + Title: () => , Body, - Footer: () => ( - - ), + Footer: () =>
+ /> ) : ( '' )} diff --git a/src/components/auth/finish/Finish.messages.js b/src/components/auth/finish/Finish.messages.js deleted file mode 100644 index 6df00e2..0000000 --- a/src/components/auth/finish/Finish.messages.js +++ /dev/null @@ -1,29 +0,0 @@ -import { defineMessages } from 'react-intl'; - -export default defineMessages({ - authForAppSuccessful: { - id: 'authForAppSuccessful', - defaultMessage: 'Authorization for {appName} was successfully completed' - // defaultMessage: 'Авторизация для {appName} успешно выполнена' - }, - authForAppFailed: { - id: 'authForAppFailed', - defaultMessage: 'Authorization for {appName} was failed' - // defaultMessage: 'Авторизация для {appName} не удалась' - }, - waitAppReaction: { - id: 'waitAppReaction', - defaultMessage: 'Please, wait till your application response' - // defaultMessage: 'Пожалуйста, дождитесь реакции вашего приложения' - }, - passCodeToApp: { - id: 'passCodeToApp', - defaultMessage: 'To complete authorization process, please, provide the following code to {appName}' - // defaultMessage: 'Чтобы завершить процесс авторизации, пожалуйста, передай {appName} этот код' - }, - copy: { - id: 'copy', - defaultMessage: 'Copy' - // defaultMessage: 'Скопировать' - } -}); diff --git a/src/components/auth/forgotPassword/ForgotPassword.intl.json b/src/components/auth/forgotPassword/ForgotPassword.intl.json new file mode 100644 index 0000000..d41a486 --- /dev/null +++ b/src/components/auth/forgotPassword/ForgotPassword.intl.json @@ -0,0 +1,7 @@ +{ + "forgotPasswordTitle": "Forgot password", + "contactSupport": "Contact support", + "sendMail": "Send mail", + "forgotPasswordMessage": "Specify the registration E-mail address for your account and we will send an email with instructions for further password recovery.", + "accountEmail": "Enter account E-mail" +} diff --git a/src/components/auth/forgotPassword/ForgotPassword.jsx b/src/components/auth/forgotPassword/ForgotPassword.jsx index 9abc38a..1cc08cf 100644 --- a/src/components/auth/forgotPassword/ForgotPassword.jsx +++ b/src/components/auth/forgotPassword/ForgotPassword.jsx @@ -1,64 +1,18 @@ import React from 'react'; import { FormattedMessage as Message } from 'react-intl'; -import Helmet from 'react-helmet'; -import buttons from 'components/ui/buttons.scss'; -import { Input } from 'components/ui/form'; +import { Button } from 'components/ui/form'; +import AuthTitle from 'components/auth/AuthTitle'; -import BaseAuthBody from 'components/auth/BaseAuthBody'; -import messages from './ForgotPassword.messages'; - -import styles from './forgotPassword.scss'; - -class Body extends BaseAuthBody { - static displayName = 'ForgotPasswordBody'; - static panelId = 'forgotPassword'; - static hasGoBack = true; - - autoFocusField = 'email'; - - // Если юзер вводил своё мыло во время попытки авторизации, то почему бы его сюда автоматически не подставить? - render() { - const {user} = this.context; - - return ( -
- {this.renderErrors()} - -

- -

- - -
- ); - } - - onFormSubmit() { - // TODO: обработчик отправки письма с инструкцией по смене пароля - } -} +import messages from './ForgotPassword.intl.json'; +import Body from './ForgotPasswordBody'; export default function ForgotPassword() { return { - Title: () => ( // TODO: separate component for PageTitle - - {(msg) => {msg}} - - ), + Title: () => , Body, - Footer: () => ( - - ), + Footer: () =>
- ), - Links: () => ( - - ) + Footer: () => - ), + Footer: () => - ), + Footer: () => - ), + Footer: () => diff --git a/src/i18n/en.json b/src/i18n/en.json index 197bae1..ad101a8 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -1,23 +1,39 @@ { - "acceptRules": "I agree with {link}", - "accountActivationTitle": "Account activation", - "accountEmail": "Enter account E-mail", - "accountPassword": "Account password", - "activationMailWasSent": "Please check {email} for the message with the last registration step", "alreadyReceivedCode": "Already received code", - "approve": "Approve", - "authForAppFailed": "Authorization for {appName} was failed", - "authForAppSuccessful": "Authorization for {appName} was successfully completed", - "change": "Change", "changeEmailButton": "Change E-mail", "changeEmailDescription": "To change current account E-mail you must first verify that you own the current address and then confirm the new one.", "changeEmailTitle": "Change E-mail", - "changePasswordTitle": "Change password", "changeUsernameButton": "Change nickname", "changeUsernameDescription": "You can change your nickname to any arbitrary value. Remember that it is not recommended to take a nickname of already existing Mojang account.", "changeUsernameTitle": "Change nickname", "changeUsernameWarning": "Be careful: if you playing on the server with nickname binding, then after changing nickname you may lose all your progress.", "codePlaceholder": "Paste the code here", + "components.auth.activation.accountActivationTitle": "Account activation", + "components.auth.activation.activationMailWasSent": "Please check {email} for the message with the last registration step", + "components.auth.activation.confirmEmail": "Confirm E-mail", + "components.auth.activation.didNotReceivedEmail": "Did not received E-mail?", + "components.auth.activation.enterTheCode": "Enter the code from E-mail here", + "components.auth.appInfo.goToAuth": "Go to auth", + "components.auth.changePassword.change": "Change", + "components.auth.changePassword.changePasswordMessage": "To enhance the security of your account, please change your password.", + "components.auth.changePassword.changePasswordTitle": "Change password", + "components.auth.changePassword.currentPassword": "Enter current password", + "components.auth.changePassword.newPassword": "Enter new password", + "components.auth.changePassword.newRePassword": "Repeat new password", + "components.auth.changePassword.skipThisStep": "Skip password changing", + "components.auth.finish.authForAppFailed": "Authorization for {appName} was failed", + "components.auth.finish.authForAppSuccessful": "Authorization for {appName} was successfully completed", + "components.auth.finish.copy": "Copy", + "components.auth.finish.passCodeToApp": "To complete authorization process, please, provide the following code to {appName}", + "components.auth.finish.waitAppReaction": "Please, wait till your application response", + "components.auth.forgotPassword.accountEmail": "Enter account E-mail", + "components.auth.forgotPassword.contactSupport": "Contact support", + "components.auth.forgotPassword.forgotPasswordMessage": "Specify the registration E-mail address for your account and we will send an email with instructions for further password recovery.", + "components.auth.forgotPassword.forgotPasswordTitle": "Forgot password", + "components.auth.forgotPassword.sendMail": "Send mail", + "components.auth.login.emailOrUsername": "E-mail or username", + "components.auth.login.loginTitle": "Sign in", + "components.auth.login.next": "Next", "components.auth.password.accountPassword": "Account password", "components.auth.password.forgotPassword": "Forgot password", "components.auth.password.forgotYourPassword": "forgot your password", @@ -26,6 +42,22 @@ "components.auth.password.rememberMe": "Remember me on this device", "components.auth.password.signInButton": "Sign in", "components.auth.password.suggestResetPassword": "Are you have {link}?", + "components.auth.permissions.approve": "Approve", + "components.auth.permissions.decline": "Decline", + "components.auth.permissions.permissionsTitle": "Application permissions", + "components.auth.permissions.scope_minecraft_server_session": "Authorization data for minecraft server", + "components.auth.permissions.scope_offline_access": "Access to your profile data, when you offline", + "components.auth.permissions.theAppNeedsAccess1": "This application needs access", + "components.auth.permissions.theAppNeedsAccess2": "to your data", + "components.auth.permissions.youAuthorizedAs": "You authorized as:", + "components.auth.register.acceptRules": "I agree with {link}", + "components.auth.register.accountPassword": "Account password", + "components.auth.register.registerTitle": "Sign Up", + "components.auth.register.repeatPassword": "Repeat password", + "components.auth.register.signUpButton": "Register", + "components.auth.register.termsOfService": "Terms of service", + "components.auth.register.yourEmail": "Your E-mail", + "components.auth.register.yourNickname": "Your nickname", "components.profile.accountDescription": "Ely.by account allows you to get access to many Minecraft resources. Please, take care of your account safety. Use secure password and change it regularly.", "components.profile.accountPreferencesTitle": "Ely.by account preferences", "components.profile.changePassword.achievementLossWarning": "Are you cherish your game achievements, right?", @@ -45,71 +77,39 @@ "components.profile.personalData": "Personal data", "components.profile.preferencesDescription": "Here you can change the key preferences of your account. Please note that all actions must be confirmed by entering a password.", "components.profile.twoFactorAuth": "Two factor auth", - "confirmEmail": "Confirm E-mail", - "contactSupport": "Contact support", - "copy": "Copy", "currentAccountEmail": "Current account E-mail address:", - "currentPassword": "Enter current password", - "decline": "Decline", - "didNotReceivedEmail": "Did not received E-mail?", "emailInvalid": "Email is invalid", "emailIsTempmail": "Tempmail E-mail addresses is not allowed", "emailNotAvailable": "This email is already registered.", - "emailOrUsername": "E-mail or username", "emailRequired": "Email is required", "emailToLong": "Email is too long", "enterFinalizationCode": "The E-mail change confirmation code was sent to {email}. Please enter the code received into the field below:", "enterInitializationCode": "The E-mail with an initialization code for E-mail change procedure was sent to {email}. Please enter the code into the field below:", "enterNewEmail": "Then provide your new E-mail address, that you want to use with this account. You will be mailed with confirmation code.", - "enterTheCode": "Enter the code from E-mail here", - "forgotPasswordMessage": "Specify the registration E-mail address for your account and we will send an email with instructions for further password recovery.", - "forgotPasswordTitle": "Forgot password", "forgotYourPassword": "forgot your password", - "goToAuth": "Go to auth", "invalidPassword": "You have entered wrong account password.", "keyNotExists": "The key is incorrect", "keyRequired": "Please, enter an activation key", "loginNotExist": "Sorry, Ely doesn't recognise your login.", "loginRequired": "Please enter email or username", - "loginTitle": "Sign in", "logout": "Logout", "newEmailPlaceholder": "Enter new E-mail", - "newPassword": "Enter new password", "newPasswordRequired": "Please enter new password", - "newRePassword": "Repeat new password", "newRePasswordRequired": "Please repeat new password", - "next": "Next", - "passCodeToApp": "To complete authorization process, please, provide the following code to {appName}", - "passwordChangeMessage": "To enhance the security of your account, please change your password.", "passwordRequired": "Please enter password", "passwordTooShort": "Your password is too short", "passwordsDoesNotMatch": "The passwords does not match", - "permissionsTitle": "Application permissions", "pleaseEnterPassword": "Please, enter your current password", "pressButtonToStart": "Press the button below to send a message with the code for E-mail change initialization.", "rePasswordRequired": "Please retype your password", "register": "Join", - "registerTitle": "Sign Up", - "repeatPassword": "Repeat password", "rulesAgreementRequired": "You must accept rules in order to create an account", - "scope_minecraft_server_session": "Authorization data for minecraft server", - "scope_offline_access": "Access to your profile data, when you offline", "sendEmailButton": "Send E-mail", - "sendMail": "Send mail", - "signUpButton": "Register", - "skipThisStep": "Skip password changing", "suggestResetPassword": "Are you have {link}?", - "termsOfService": "Terms of service", - "theAppNeedsAccess1": "This application needs access", - "theAppNeedsAccess2": "to your data", "title": "Confirm your action", "usernameInvalid": "Username is invalid", "usernameRequired": "Username is required", "usernameTooLong": "Username is too long", "usernameTooShort": "Username is too short", - "usernameUnavailable": "This username is already taken", - "waitAppReaction": "Please, wait till your application response", - "youAuthorizedAs": "You authorized as:", - "yourEmail": "Your E-mail", - "yourNickname": "Your nickname" + "usernameUnavailable": "This username is already taken" } diff --git a/src/i18n/ru.json b/src/i18n/ru.json index 2855d31..17d7806 100644 --- a/src/i18n/ru.json +++ b/src/i18n/ru.json @@ -1,23 +1,39 @@ { - "acceptRules": "I agree with {link}", - "accountActivationTitle": "Account activation", - "accountEmail": "Enter account E-mail", - "accountPassword": "Account password", - "activationMailWasSent": "Please check {email} for the message with the last registration step", "alreadyReceivedCode": "Already received code", - "approve": "Approve", - "authForAppFailed": "Authorization for {appName} was failed", - "authForAppSuccessful": "Authorization for {appName} was successfully completed", - "change": "Change", "changeEmailButton": "Change E-mail", "changeEmailDescription": "To change current account E-mail you must first verify that you own the current address and then confirm the new one.", "changeEmailTitle": "Change E-mail", - "changePasswordTitle": "Change password", "changeUsernameButton": "Change nickname", "changeUsernameDescription": "You can change your nickname to any arbitrary value. Remember that it is not recommended to take a nickname of already existing Mojang account.", "changeUsernameTitle": "Change nickname", "changeUsernameWarning": "Be careful: if you playing on the server with nickname binding, then after changing nickname you may lose all your progress.", "codePlaceholder": "Paste the code here", + "components.auth.activation.accountActivationTitle": "Account activation", + "components.auth.activation.activationMailWasSent": "Please check {email} for the message with the last registration step", + "components.auth.activation.confirmEmail": "Confirm E-mail", + "components.auth.activation.didNotReceivedEmail": "Did not received E-mail?", + "components.auth.activation.enterTheCode": "Enter the code from E-mail here", + "components.auth.appInfo.goToAuth": "Go to auth", + "components.auth.changePassword.change": "Change", + "components.auth.changePassword.changePasswordMessage": "To enhance the security of your account, please change your password.", + "components.auth.changePassword.changePasswordTitle": "Change password", + "components.auth.changePassword.currentPassword": "Enter current password", + "components.auth.changePassword.newPassword": "Enter new password", + "components.auth.changePassword.newRePassword": "Repeat new password", + "components.auth.changePassword.skipThisStep": "Skip password changing", + "components.auth.finish.authForAppFailed": "Авторизация для {appName} не удалась", + "components.auth.finish.authForAppSuccessful": "Авторизация для {appName} успешно выполнена", + "components.auth.finish.copy": "Скопировать", + "components.auth.finish.passCodeToApp": "Чтобы завершить процесс авторизации, пожалуйста, передай {appName} этот код", + "components.auth.finish.waitAppReaction": "Пожалуйста, дождитесь реакции вашего приложения", + "components.auth.forgotPassword.accountEmail": "Enter account E-mail", + "components.auth.forgotPassword.contactSupport": "Contact support", + "components.auth.forgotPassword.forgotPasswordMessage": "Specify the registration E-mail address for your account and we will send an email with instructions for further password recovery.", + "components.auth.forgotPassword.forgotPasswordTitle": "Forgot password", + "components.auth.forgotPassword.sendMail": "Send mail", + "components.auth.login.emailOrUsername": "E-mail or username", + "components.auth.login.loginTitle": "Sign in", + "components.auth.login.next": "Next", "components.auth.password.accountPassword": "Account password", "components.auth.password.forgotPassword": "Forgot password", "components.auth.password.forgotYourPassword": "forgot your password", @@ -26,6 +42,22 @@ "components.auth.password.rememberMe": "Remember me on this device", "components.auth.password.signInButton": "Sign in", "components.auth.password.suggestResetPassword": "Are you have {link}?", + "components.auth.permissions.approve": "Approve", + "components.auth.permissions.decline": "Decline", + "components.auth.permissions.permissionsTitle": "Application permissions", + "components.auth.permissions.scope_minecraft_server_session": "Authorization data for minecraft server", + "components.auth.permissions.scope_offline_access": "Access to your profile data, when you offline", + "components.auth.permissions.theAppNeedsAccess1": "This application needs access", + "components.auth.permissions.theAppNeedsAccess2": "to your data", + "components.auth.permissions.youAuthorizedAs": "You authorized as:", + "components.auth.register.acceptRules": "I agree with {link}", + "components.auth.register.accountPassword": "Account password", + "components.auth.register.registerTitle": "Sign Up", + "components.auth.register.repeatPassword": "Repeat password", + "components.auth.register.signUpButton": "Register", + "components.auth.register.termsOfService": "Terms of service", + "components.auth.register.yourEmail": "Your E-mail", + "components.auth.register.yourNickname": "Your nickname", "components.profile.accountDescription": "Благодаря аккаунту Ely.by вы можете получить доступ ко многим ресурсам, связанным с Minecraft. Берегите свой аккаунт, используйте надёжный пароль и регулярно его меняйте.", "components.profile.accountPreferencesTitle": "Настройки аккаунта Ely.by", "components.profile.changePassword.achievementLossWarning": "Вы ведь дорожите своими игровыми достижениями?", @@ -45,71 +77,39 @@ "components.profile.personalData": "Персональные данные", "components.profile.preferencesDescription": "Здесь вы можете сменить ключевые параметры вашего аккаунта. Обратите внимание, что для всех действий необходимо подтверждение при помощи ввода пароля.", "components.profile.twoFactorAuth": "Двухфакторная аутентификация", - "confirmEmail": "Confirm E-mail", - "contactSupport": "Contact support", - "copy": "Copy", "currentAccountEmail": "Current account E-mail address:", - "currentPassword": "Enter current password", - "decline": "Decline", - "didNotReceivedEmail": "Did not received E-mail?", "emailInvalid": "Email is invalid", "emailIsTempmail": "Tempmail E-mail addresses is not allowed", "emailNotAvailable": "This email is already registered.", - "emailOrUsername": "E-mail or username", "emailRequired": "Email is required", "emailToLong": "Email is too long", "enterFinalizationCode": "The E-mail change confirmation code was sent to {email}. Please enter the code received into the field below:", "enterInitializationCode": "The E-mail with an initialization code for E-mail change procedure was sent to {email}. Please enter the code into the field below:", "enterNewEmail": "Then provide your new E-mail address, that you want to use with this account. You will be mailed with confirmation code.", - "enterTheCode": "Enter the code from E-mail here", - "forgotPasswordMessage": "Specify the registration E-mail address for your account and we will send an email with instructions for further password recovery.", - "forgotPasswordTitle": "Forgot password", "forgotYourPassword": "forgot your password", - "goToAuth": "Go to auth", "invalidPassword": "You have entered wrong account password.", "keyNotExists": "The key is incorrect", "keyRequired": "Please, enter an activation key", "loginNotExist": "Sorry, Ely doesn't recognise your login.", "loginRequired": "Please enter email or username", - "loginTitle": "Sign in", "logout": "Logout", "newEmailPlaceholder": "Enter new E-mail", - "newPassword": "Enter new password", "newPasswordRequired": "Please enter new password", - "newRePassword": "Repeat new password", "newRePasswordRequired": "Please repeat new password", - "next": "Next", - "passCodeToApp": "To complete authorization process, please, provide the following code to {appName}", - "passwordChangeMessage": "To enhance the security of your account, please change your password.", "passwordRequired": "Please enter password", "passwordTooShort": "Your password is too short", "passwordsDoesNotMatch": "The passwords does not match", - "permissionsTitle": "Application permissions", "pleaseEnterPassword": "Please, enter your current password", "pressButtonToStart": "Press the button below to send a message with the code for E-mail change initialization.", "rePasswordRequired": "Please retype your password", "register": "Join", - "registerTitle": "Sign Up", - "repeatPassword": "Repeat password", "rulesAgreementRequired": "You must accept rules in order to create an account", - "scope_minecraft_server_session": "Authorization data for minecraft server", - "scope_offline_access": "Access to your profile data, when you offline", "sendEmailButton": "Send E-mail", - "sendMail": "Send mail", - "signUpButton": "Register", - "skipThisStep": "Skip password changing", "suggestResetPassword": "Are you have {link}?", - "termsOfService": "Terms of service", - "theAppNeedsAccess1": "This application needs access", - "theAppNeedsAccess2": "to your data", "title": "Confirm your action", "usernameInvalid": "Username is invalid", "usernameRequired": "Username is required", "usernameTooLong": "Username is too long", "usernameTooShort": "Username is too short", - "usernameUnavailable": "This username is already taken", - "waitAppReaction": "Please, wait till your application response", - "youAuthorizedAs": "You authorized as:", - "yourEmail": "Your E-mail", - "yourNickname": "Your nickname" + "usernameUnavailable": "This username is already taken" } diff --git a/src/pages/profile/ProfilePage.jsx b/src/pages/profile/ProfilePage.jsx index 0550570..e5ef75b 100644 --- a/src/pages/profile/ProfilePage.jsx +++ b/src/pages/profile/ProfilePage.jsx @@ -6,7 +6,8 @@ class ProfilePage extends Component { displayName = 'ProfilePage'; static propTypes = { - onSubmit: PropTypes.func.isRequired + onSubmit: PropTypes.func.isRequired, + goToProfile: PropTypes.func.isRequired }; static childContextTypes = {