More Refactor

This commit is contained in:
Chi Vinh Le
2018-01-30 15:49:28 +01:00
parent ebb85d17ce
commit d80cd6f0a2
7 changed files with 6 additions and 6 deletions
@@ -3,7 +3,7 @@ import styles from './FlaggedUser.css';
import PropTypes from 'prop-types';
import cn from 'classnames';
import t from 'coral-framework/services/i18n';
import { username } from 'talk-plugin-flags/helpers/flagReasons';
import { username } from 'coral-framework/graphql/flagReasons';
import ApproveButton from 'coral-admin/src/components/ApproveButton';
import RejectButton from 'coral-admin/src/components/RejectButton';
import { isFlaggedUserDangling } from '../utils';
@@ -5,7 +5,7 @@ import TagLabel from './TagLabel';
import CommentTimestamp from 'coral-framework/components/CommentTimestamp';
import ReplyButton from './ReplyButton';
import ReplyBox from './ReplyBox';
import { FlagComment } from 'talk-plugin-flags';
import FlagComment from './FlagComment';
import { can } from 'coral-framework/services/perms';
import { TransitionGroup } from 'react-transition-group';
import cn from 'classnames';
@@ -6,11 +6,12 @@ import { can } from 'coral-framework/services/perms';
import { PopupMenu, Button } from 'coral-ui';
import ClickOutside from 'coral-framework/components/ClickOutside';
import cn from 'classnames';
import styles from './styles.css';
import * as REASONS from '../helpers/flagReasons';
import styles from './FlagButton.css';
import * as REASONS from 'coral-framework/graphql/flagReasons';
import { getErrorMessages, forEachError } from 'coral-framework/utils';
// TODO: remove this.
const name = 'talk-plugin-flags';
export default class FlagButton extends Component {
@@ -2,7 +2,7 @@ import React from 'react';
import FlagButton from './FlagButton';
import t from 'coral-framework/services/i18n';
import { username, comment } from '../helpers/flagReasons';
import { username, comment } from 'coral-framework/graphql/flagReasons';
const FlagComment = props => (
<FlagButton {...props} getPopupMenu={getPopupMenu} />
-1
View File
@@ -1 +0,0 @@
export { default as FlagComment } from './components/FlagComment';