Fix some comments

This commit is contained in:
Chi Vinh Le
2018-02-13 16:03:06 +01:00
parent 0f69df26f6
commit 431bbd4f03
4 changed files with 18 additions and 4 deletions
@@ -4,7 +4,11 @@ import PropTypes from 'prop-types';
import { translateError } from '../utils';
/**
* WithForgotPassword provides properties `forgotPasssword`, `loading`, `errorMessage`, `success`.
* WithForgotPassword provides properties
* `forgotPasssword`,
* `loading`,
* `errorMessage`,
* `success`.
*/
export default hoistStatics(WrappedComponent => {
class WithForgotPassword extends React.Component {
@@ -4,7 +4,11 @@ import PropTypes from 'prop-types';
import { translateError } from '../utils';
/**
* WithResendEmailConfirmaton provides properties `forgotPasssword`, `loading`, `errorMessage`, `success`.
* WithResendEmailConfirmaton provides properties
* `resendEmailConfirmation`,
* `loading`,
* `errorMessage`,
* `success`.
*/
export default hoistStatics(WrappedComponent => {
class WithResendEmailConfirmaton extends React.Component {
@@ -19,7 +19,7 @@ import get from 'lodash/get';
* `errorMessage`,
* `requireEmailVerification`,
* `success`,
* `validate`.
* `validateUsername`.
*/
const withSetUsername = hoistStatics(WrappedComponent => {
class WithSetUsername extends React.Component {
+7 -1
View File
@@ -23,7 +23,13 @@ const QUERY = gql`
export const withSettingsQuery = withQuery(QUERY);
/**
* withSignUp provides properties `signUp`, `loading`, `errorMessage`, `requireEmailVerification`, 'success', 'validate'.
* withSignUp provides properties
* `signUp`,
* `loading`,
* `errorMessage`,
* `requireEmailVerification`,
* `success`,
* `validate`.
*/
const withSignUp = hoistStatics(WrappedComponent => {
class WithSignUp extends React.Component {