From 6d777944aa6f3fa76ecb51ced45b34c62dc22605 Mon Sep 17 00:00:00 2001 From: okbel Date: Thu, 4 Jan 2018 13:37:21 -0300 Subject: [PATCH] Naming Conventions --- client/coral-admin/src/containers/UserDetail.js | 6 +++--- .../coral-admin/src/routes/Community/containers/People.js | 6 +++--- client/coral-framework/graphql/mutations.js | 4 ++-- plugin-api/beta/client/hocs/index.js | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client/coral-admin/src/containers/UserDetail.js b/client/coral-admin/src/containers/UserDetail.js index d4722384e..972194854 100644 --- a/client/coral-admin/src/containers/UserDetail.js +++ b/client/coral-admin/src/containers/UserDetail.js @@ -14,7 +14,7 @@ import { toggleSelectCommentInUserDetail, toggleSelectAllCommentInUserDetail } from 'coral-admin/src/actions/userDetail'; -import {withSetCommentStatus, withUnBanUser, withUnSuspendUser} from 'coral-framework/graphql/mutations'; +import {withSetCommentStatus, withUnbanUser, withUnsuspendUser} from 'coral-framework/graphql/mutations'; import UserDetailComment from './UserDetailComment'; import update from 'immutability-helper'; import {notify} from 'coral-framework/actions/notification'; @@ -250,6 +250,6 @@ export default compose( connect(mapStateToProps, mapDispatchToProps), withUserDetailQuery, withSetCommentStatus, - withUnBanUser, - withUnSuspendUser, + withUnbanUser, + withUnsuspendUser, )(UserDetailContainer); diff --git a/client/coral-admin/src/routes/Community/containers/People.js b/client/coral-admin/src/routes/Community/containers/People.js index 789332c36..bd1c9f6a4 100644 --- a/client/coral-admin/src/routes/Community/containers/People.js +++ b/client/coral-admin/src/routes/Community/containers/People.js @@ -5,7 +5,7 @@ import {compose, gql} from 'react-apollo'; import People from '../components/People'; import PropTypes from 'prop-types'; import {withFragments} from 'plugin-api/beta/client/hocs'; -import {withUnBanUser, withUnSuspendUser, withSetUserRole} from 'coral-framework/graphql/mutations'; +import {withUnbanUser, withUnsuspendUser, withSetUserRole} from 'coral-framework/graphql/mutations'; import {showBanUserDialog} from 'actions/banUserDialog'; import {showSuspendUserDialog} from 'actions/suspendUserDialog'; import {viewUserDetail} from '../../../actions/userDetail'; @@ -194,8 +194,8 @@ const SEARCH_QUERY = gql` export default compose( connect(null, mapDispatchToProps), withSetUserRole, - withUnSuspendUser, - withUnBanUser, + withUnsuspendUser, + withUnbanUser, withFragments({ root: gql` fragment TalkAdminCommunity_People_root on RootQuery { diff --git a/client/coral-framework/graphql/mutations.js b/client/coral-framework/graphql/mutations.js index ab70dbd95..89db451ae 100644 --- a/client/coral-framework/graphql/mutations.js +++ b/client/coral-framework/graphql/mutations.js @@ -177,7 +177,7 @@ export const withSuspendUser = withMutation( }) }); -export const withUnSuspendUser = withMutation( +export const withUnsuspendUser = withMutation( gql` mutation UnSuspendUser($input: UnSuspendUserInput!) { unSuspendUser(input: $input) { @@ -273,7 +273,7 @@ export const withBanUser = withMutation( }), }); -export const withUnBanUser = withMutation( +export const withUnbanUser = withMutation( gql` mutation UnBanUser($input: UnBanUserInput!) { unBanUser(input: $input) { diff --git a/plugin-api/beta/client/hocs/index.js b/plugin-api/beta/client/hocs/index.js index 15cbab034..6b2e0f5b1 100644 --- a/plugin-api/beta/client/hocs/index.js +++ b/plugin-api/beta/client/hocs/index.js @@ -8,7 +8,7 @@ export {default as withEmit} from 'coral-framework/hocs/withEmit'; export { withIgnoreUser, withBanUser, - withUnBanUser, + withUnbanUser, withStopIgnoringUser, withSetCommentStatus, } from 'coral-framework/graphql/mutations';