This commit is contained in:
Belen Curcio
2017-05-10 15:35:32 -03:00
parent 7313aaa473
commit c3dff79e6e
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -4,10 +4,10 @@ import styles from './Slot.css';
import {connect} from 'react-redux';
import {getSlotElements} from 'coral-framework/helpers/plugins';
function Slot ({fill, inline = false, plugin_config: {debug, ...config}, ...rest}) {
function Slot ({fill, inline = false, plugin_config: {...config}, ...rest}) {
return (
<div className={cn({[styles.inline]: inline, [styles.debug]: debug})}>
{getSlotElements(fill, {...config, ...rest})}
<div className={cn({[styles.inline]: inline, [styles.debug]: config.debug})}>
{getSlotElements(fill, {...rest, ...config})}
</div>
);
}
@@ -7,6 +7,7 @@ const isOffTopic = (tags) => {
export default (props) => (
<span>
{console.log(props)}
{
isOffTopic(props.comment.tags) ? (
<span className={styles.tag}>