Naming Conventions

This commit is contained in:
okbel
2018-01-04 13:37:21 -03:00
parent 841398c6c1
commit 6d777944aa
4 changed files with 9 additions and 9 deletions
@@ -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);
@@ -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 {
+2 -2
View File
@@ -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) {
+1 -1
View File
@@ -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';