mirror of
https://github.com/wassname/talk.git
synced 2026-07-07 15:13:35 +08:00
simplify wordlist ui further
This commit is contained in:
@@ -46,6 +46,7 @@ class Configure extends React.Component {
|
||||
}
|
||||
|
||||
onChangeWordlist = (listName, list) => {
|
||||
this.setState({changed: true});
|
||||
this.props.dispatch(updateWordlist(listName, list));
|
||||
}
|
||||
|
||||
|
||||
@@ -2,14 +2,11 @@ import React from 'react';
|
||||
import I18n from 'coral-framework/modules/i18n/i18n';
|
||||
import translations from '../../translations.json';
|
||||
import TagsInput from 'react-tagsinput';
|
||||
import tagStyles from 'react-tagsinput/react-tagsinput.css';
|
||||
|
||||
import styles from './Configure.css';
|
||||
|
||||
import {Card} from 'react-mdl';
|
||||
|
||||
console.log('tagStyles', tagStyles);
|
||||
|
||||
const Wordlist = ({suspectWords, bannedWords, onChangeWordlist}) => (
|
||||
<div>
|
||||
<h3>{lang.t('configure.banned-words-title')}</h3>
|
||||
|
||||
+4
-3
@@ -13,6 +13,7 @@
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
}
|
||||
/* putting this here until I can get webpack to behave */
|
||||
.react-tagsinput {
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
@@ -26,10 +27,10 @@
|
||||
}
|
||||
|
||||
.react-tagsinput-tag {
|
||||
background-color: rgb(244, 126, 107);
|
||||
background-color: rgb(255, 220, 214);
|
||||
border-radius: 2px;
|
||||
border: 1px solid rgb(142, 76, 65);
|
||||
color: rgb(142, 76, 65);
|
||||
border: 1px solid rgb(244, 126, 107);
|
||||
color: rgb(244, 126, 107);
|
||||
display: inline-block;
|
||||
font-family: sans-serif;
|
||||
font-size: 13px;
|
||||
|
||||
Reference in New Issue
Block a user