diff --git a/client/coral-plugin-history/CommentHistory.js b/client/coral-plugin-history/CommentHistory.js
index dc505e38a..1940f2695 100644
--- a/client/coral-plugin-history/CommentHistory.js
+++ b/client/coral-plugin-history/CommentHistory.js
@@ -7,12 +7,11 @@ const CommentHistory = props => {
{props.comments.map((comment, i) => {
- return
{comment.body}
- {/*return
;*/}
+ return
;
})}
@@ -20,8 +19,8 @@ const CommentHistory = props => {
};
CommentHistory.propTypes = {
- comments: PropTypes.arrayOf(PropTypes.object).isRequired,
- assets: PropTypes.arrayOf(PropTypes.object).isRequired
+ comments: PropTypes.array.isRequired,
+ asset: PropTypes.object.isRequired
};
export default CommentHistory;
diff --git a/client/coral-settings/containers/SettingsContainer.js b/client/coral-settings/containers/SettingsContainer.js
index 752f01c40..ff8b76628 100644
--- a/client/coral-settings/containers/SettingsContainer.js
+++ b/client/coral-settings/containers/SettingsContainer.js
@@ -6,8 +6,10 @@ import I18n from 'coral-framework/modules/i18n/i18n';
import {myCommentHistory} from 'coral-framework/graphql/queries';
import {saveBio} from 'coral-framework/actions/user';
+import {link} from 'coral-framework/PymConnection';
+
import BioContainer from './BioContainer';
-import {TabBar, Tab, TabContent} from 'coral-ui';
+import {TabBar, Tab, TabContent, Spinner} from 'coral-ui';
import NotLoggedIn from '../components/NotLoggedIn';
import CommentHistory from 'coral-plugin-history/CommentHistory';
import SettingsHeader from '../components/SettingsHeader';
@@ -33,13 +35,15 @@ class SettingsContainer extends Component {
}
render() {
- const {loggedIn, userData, showSignInDialog, user, data} = this.props;
+ const {loggedIn, userData, asset, showSignInDialog, user, data} = this.props;
const {activeTab} = this.state;
if (data.loading) {
- return Loading
+ return ;
}
+ console.log(this.props);
+
return (
}>
@@ -50,7 +54,11 @@ class SettingsContainer extends Component {
{
data.me.comments.length ?
-
+
:
{lang.t('user-no-comment')}
}
@@ -64,7 +72,8 @@ class SettingsContainer extends Component {
}
const mapStateToProps = state => ({
- user: state.user.toJS()
+ user: state.user.toJS(),
+ asset: state.asset.toJS()
});
const mapDispatchToProps = dispatch => ({