mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 11:01:41 +08:00
More Refactor
This commit is contained in:
@@ -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';
|
||||
|
||||
+3
-2
@@ -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 {
|
||||
+1
-1
@@ -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 +0,0 @@
|
||||
export { default as FlagComment } from './components/FlagComment';
|
||||
Reference in New Issue
Block a user