From 05296d4802b32dacfc1944649dcf0773bb1617b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Curcio?= Date: Fri, 14 Sep 2018 10:03:25 -0300 Subject: [PATCH] Adding tabs to the stream <3 --- src/core/client/stream/components/App.tsx | 31 ++++++++++++++--------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/core/client/stream/components/App.tsx b/src/core/client/stream/components/App.tsx index 421e6af9c..8e9dcc437 100644 --- a/src/core/client/stream/components/App.tsx +++ b/src/core/client/stream/components/App.tsx @@ -1,7 +1,13 @@ import * as React from "react"; import { StatelessComponent } from "react"; -import { Flex } from "talk-ui/components"; +import { + HorizontalGutter, + Tab, + TabBar, + TabContent, + TabPane, +} from "talk-ui/components"; import CommentsPaneContainer from "../tabs/comments/containers/CommentsPaneContainer"; import * as styles from "./App.css"; @@ -11,18 +17,19 @@ export interface AppProps { } const App: StatelessComponent = props => { - let view: React.ReactElement; - switch (props.activeTab) { - case "COMMENTS": - view = ; - break; - default: - throw new Error(`Unknown tab ${props.activeTab}`); - } return ( - - {view} - + + + Comments + My Profile + + + + + + My profileeeeee + + ); };