mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 16:00:54 +08:00
renaming
This commit is contained in:
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import styles from './Community.css';
|
||||
|
||||
import ActionButton from './ActionButton';
|
||||
import {username} from 'coral-plugin-flags/helpers/flagMap';
|
||||
import {username} from 'coral-plugin-flags/helpers/flagReasons';
|
||||
import ActionsMenu from 'coral-admin/src/components/ActionsMenu';
|
||||
import ActionsMenuItem from 'coral-admin/src/components/ActionsMenuItem';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import FlagButton from './FlagButton';
|
||||
|
||||
import t from 'coral-framework/services/i18n';
|
||||
import * as flagReason from '../helpers/flagMap';
|
||||
import {username, comment} from '../helpers/flagReasons';
|
||||
|
||||
const FlagComment = (props) => <FlagButton {...props} getPopupMenu={getPopupMenu} />;
|
||||
|
||||
@@ -21,17 +21,17 @@ const getPopupMenu = [
|
||||
(itemType) => {
|
||||
const options = itemType === 'COMMENTS' ?
|
||||
[
|
||||
{val: flagReason.commment.offensive, text: t('comment_offensive')},
|
||||
{val: flagReason.commment.spam, text: t('marketing')},
|
||||
{val: flagReason.commment.noagree, text: t('no_agree_comment')},
|
||||
{val: flagReason.commment.other, text: t('other')}
|
||||
{val: comment.offensive, text: t('comment_offensive')},
|
||||
{val: comment.spam, text: t('marketing')},
|
||||
{val: comment.noagree, text: t('no_agree_comment')},
|
||||
{val: comment.other, text: t('other')}
|
||||
]
|
||||
: [
|
||||
{val: flagReason.username.offensive, text: t('username_offensive')},
|
||||
{val: flagReason.username.nolike, text: t('no_like_username')},
|
||||
{val: flagReason.username.impersonating, text: t('user_impersonating')},
|
||||
{val: flagReason.username.spam, text: t('marketing')},
|
||||
{val: flagReason.username.other, text: t('other')}
|
||||
{val: username.offensive, text: t('username_offensive')},
|
||||
{val: username.nolike, text: t('no_like_username')},
|
||||
{val: username.impersonating, text: t('user_impersonating')},
|
||||
{val: username.spam, text: t('marketing')},
|
||||
{val: username.other, text: t('other')}
|
||||
];
|
||||
return {
|
||||
header: t('step_2_header'),
|
||||
|
||||
Reference in New Issue
Block a user