Presentational components, events, tabs and more

This commit is contained in:
Belén Curcio
2018-10-01 17:04:16 -03:00
parent 52cdec056b
commit 0a17fc7e64
6 changed files with 31 additions and 34 deletions
+3 -8
View File
@@ -9,24 +9,19 @@ import {
TabPane,
} from "talk-ui/components";
import { SetActiveTabMutation } from "talk-stream/mutations";
import CommentsPaneContainer from "../tabs/comments/containers/CommentsPaneContainer";
import ProfileQuery from "../tabs/profile/queries/ProfileQuery";
import * as styles from "./App.css";
export interface AppProps {
activeTab: "COMMENTS" | "PROFILE" | "%future added value" | string;
onActiveTab: SetActiveTabMutation;
activeTab: "COMMENTS" | "PROFILE" | "%future added value";
onTabClick: (tab: string) => void;
}
const App: StatelessComponent<AppProps> = props => {
return (
<HorizontalGutter className={styles.root}>
<TabBar
activeTab={props.activeTab}
onTabClick={tab => props.onActiveTab({ tab })}
>
<TabBar activeTab={props.activeTab} onTabClick={props.onTabClick}>
<Tab tabId="COMMENTS">Comments</Tab>
<Tab tabId="PROFILE">My Profile</Tab>
</TabBar>