simplify wordlist ui further

This commit is contained in:
Riley Davis
2016-12-19 16:49:05 -07:00
parent 123ba07b63
commit 706cefad9e
3 changed files with 5 additions and 6 deletions
@@ -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
View File
@@ -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;