diff --git a/client/coral-settings/components/CommentHistory.css b/client/coral-settings/components/CommentHistory.css
new file mode 100644
index 000000000..e69de29bb
diff --git a/client/coral-settings/components/CommentHistory.js b/client/coral-settings/components/CommentHistory.js
new file mode 100644
index 000000000..3160c8a88
--- /dev/null
+++ b/client/coral-settings/components/CommentHistory.js
@@ -0,0 +1,15 @@
+import React from 'react';
+import styles from './CommentHistory.css';
+
+export default ({comments = []}) => (
+
+
Comments
+
+ {comments.map(() => (
+ -
+ {/* Comment Data*/}
+
+ ))}
+
+
+);
diff --git a/client/coral-settings/containers/SettingsContainer.js b/client/coral-settings/containers/SettingsContainer.js
index 2b2c3cd33..8aa01211e 100644
--- a/client/coral-settings/containers/SettingsContainer.js
+++ b/client/coral-settings/containers/SettingsContainer.js
@@ -5,24 +5,42 @@ import {} from '../../coral-framework/actions/embedStream';
import {TabBar, Tab} from '../../coral-ui';
import Bio from '../components/Bio';
+import CommentHistory from '../components/CommentHistory';
import SettingsHeader from '../components/SettingsHeader';
class SignInContainer extends Component {
+ constructor (props) {
+ super(props);
+ this.state = {
+ activeTab: 0
+ };
+
+ this.handleTabChange = this.handleTabChange.bind(this);
+ }
+
componentWillMount () {
// Get Bio
// Fetch commentHistory
}
+ handleTabChange(tab) {
+ this.setState({
+ activeTab: tab
+ });
+ }
+
render() {
//const {embedStream} = this.props;
+ const {activeTab} = this.state;
return (
-
+
All Comments (120)
Profile Settings
-
+ { activeTab === 0 && }
+ { activeTab === 1 && }
);
}
diff --git a/client/coral-ui/components/Tab.js b/client/coral-ui/components/Tab.js
index 09b4da4d3..af04bec9c 100644
--- a/client/coral-ui/components/Tab.js
+++ b/client/coral-ui/components/Tab.js
@@ -5,9 +5,9 @@ export default ({children, tabId, active, onTabClick, cStyle = 'base'}) => (
onTabClick(tabId)}
>
{children}
-
+
);
diff --git a/client/coral-ui/components/TabBar.js b/client/coral-ui/components/TabBar.js
index 73abd7386..1ab7f47a6 100644
--- a/client/coral-ui/components/TabBar.js
+++ b/client/coral-ui/components/TabBar.js
@@ -7,12 +7,14 @@ export class TabBar extends React.Component {
this.handleClickTab = this.handleClickTab.bind(this);
}
- handleClickTab (e) {
- console.log(e);
+ handleClickTab(tabId) {
+ if (this.props.onChange) {
+ this.props.onChange(tabId);
+ }
}
render() {
- const {children, activeTab = 0, cStyle = 'base'} = this.props;
+ const {children, activeTab, cStyle = 'base'} = this.props;
return (