diff --git a/client/coral-embed-stream/src/Comment.js b/client/coral-embed-stream/src/Comment.js index bdccb7f66..44bdad88e 100644 --- a/client/coral-embed-stream/src/Comment.js +++ b/client/coral-embed-stream/src/Comment.js @@ -160,7 +160,7 @@ class Comment extends React.Component { ? : null } - + @@ -192,7 +192,7 @@ class Comment extends React.Component { removeBest={removeBestTag} /> - +
diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index b3244d56b..603de44cb 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -120,7 +120,7 @@ class Embed extends Component { return (
- + {lang.t('MY_COMMENTS')} @@ -192,7 +192,9 @@ class Embed extends Component { showSignInDialog={this.props.showSignInDialog} key={highlightedComment.id} reactKey={highlightedComment.id} - comment={highlightedComment} /> + comment={highlightedComment} + {...this.props} + /> } - {injectPlugins(fill)} + {injectPlugins(slotProps)}
); } diff --git a/client/coral-framework/helpers/importer.js b/client/coral-framework/helpers/importer.js index 96adc799e..929048088 100644 --- a/client/coral-framework/helpers/importer.js +++ b/client/coral-framework/helpers/importer.js @@ -1,6 +1,6 @@ import {client as clientPlugins} from 'pluginsConfig'; -function importer (fill) { +function importer ({fill, ...props}) { let context, importedFiles; @@ -39,7 +39,8 @@ function importer (fill) { */ plugin.props = { ...actionsImporter(), - ...getConfig(plugin.name) + ...getConfig(plugin.name), + ...props }; return plugin; diff --git a/plugins/coral-plugin-respect/client/index.js b/plugins/coral-plugin-respect/client/index.js index 2ea5751a8..9db812fcc 100644 --- a/plugins/coral-plugin-respect/client/index.js +++ b/plugins/coral-plugin-respect/client/index.js @@ -3,6 +3,7 @@ import styles from './style.css'; export default (props) => (
+ {console.log(props)}
);