Move userDetail out of Moderation route

This commit is contained in:
Chi Vinh Le
2017-07-27 23:23:40 +07:00
parent 57fb77008a
commit ce2f8f97e8
29 changed files with 171 additions and 242 deletions
@@ -0,0 +1,39 @@
import {gql} from 'react-apollo';
import UserDetailComment from '../components/UserDetailComment';
import withFragments from 'coral-framework/hocs/withFragments';
export default withFragments({
comment: gql`
fragment CoralAdmin_UserDetail_comment on Comment {
id
body
created_at
status
asset {
id
title
url
}
action_summaries {
count
... on FlagActionSummary {
reason
}
}
actions {
... on FlagAction {
id
reason
message
user {
id
username
}
}
}
editing {
edited
}
}
`
})(UserDetailComment);