mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 05:53:30 +08:00
Naming Conventions
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user