diff --git a/client/coral-framework/actions/items.js b/client/coral-framework/actions/items.js
index 6cdc1adeb..01327a324 100644
--- a/client/coral-framework/actions/items.js
+++ b/client/coral-framework/actions/items.js
@@ -13,8 +13,6 @@ export const ADD_ITEM = 'ADD_ITEM';
export const UPDATE_ITEM = 'UPDATE_ITEM';
export const APPEND_ITEM_ARRAY = 'APPEND_ITEM_ARRAY';
-/* Item Actions */
-
/**
* Action creators
*/
diff --git a/client/coral-settings/components/CommentHistory.css b/client/coral-plugin-history/CommentHistory.css
similarity index 100%
rename from client/coral-settings/components/CommentHistory.css
rename to client/coral-plugin-history/CommentHistory.css
diff --git a/client/coral-plugin-history/CommentHistory.js b/client/coral-plugin-history/CommentHistory.js
index 492c1545b..ea8846373 100644
--- a/client/coral-plugin-history/CommentHistory.js
+++ b/client/coral-plugin-history/CommentHistory.js
@@ -1,6 +1,18 @@
import React from 'react';
import {connect} from 'react-redux';
+import styles from './CommentHistory.css';
+
+class CommentHistory extends React.Component {
+ render () {
+ return (
+
+
Comment History
+
+ );
+ }
+}
+
const mapStateToProps = state => {
return {
config: state.config.toJS(),
@@ -9,12 +21,4 @@ const mapStateToProps = state => {
};
};
-class CommentHistory extends React.Component {
- render () {
- return (
- Comment History
- );
- }
-}
-
export default connect(mapStateToProps)(CommentHistory);
diff --git a/client/coral-settings/containers/SettingsContainer.js b/client/coral-settings/containers/SettingsContainer.js
index 96020a10c..916a85baf 100644
--- a/client/coral-settings/containers/SettingsContainer.js
+++ b/client/coral-settings/containers/SettingsContainer.js
@@ -6,10 +6,12 @@ import {saveBio} from 'coral-framework/actions/user';
import BioContainer from './BioContainer';
import NotLoggedIn from '../components/NotLoggedIn';
import {TabBar, Tab, TabContent} from '../../coral-ui';
-import CommentHistory from '../components/CommentHistory';
+import CommentHistory from 'coral-plugin-history/CommentHistory';
import SettingsHeader from '../components/SettingsHeader';
import RestrictedContent from 'coral-framework/components/RestrictedContent';
+import {fetchCommentsByUserId} from 'coral-framework/actions/items';
+
class SignInContainer extends Component {
constructor (props) {
super(props);
@@ -56,7 +58,7 @@ const mapStateToProps = () => ({
const mapDispatchToProps = dispatch => ({
saveBio: (user_id, formData) => dispatch(saveBio(user_id, formData)),
- getHistory: () => dispatch(),
+ fetchCommentsByUserId: userId => dispatch(fetchCommentsByUserId(userId))
});
export default connect(