From 45b39c9a0f4d932d3b6f90a194cd91b507fcee2f Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Wed, 3 Oct 2018 00:41:51 +0200 Subject: [PATCH] fix: improve typings --- src/core/client/stream/components/App.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/client/stream/components/App.tsx b/src/core/client/stream/components/App.tsx index cb084e4e5..28713f4e5 100644 --- a/src/core/client/stream/components/App.tsx +++ b/src/core/client/stream/components/App.tsx @@ -13,9 +13,11 @@ import CommentsPaneContainer from "../tabs/comments/containers/CommentsPaneConta import ProfileQuery from "../tabs/profile/queries/ProfileQuery"; import * as styles from "./App.css"; +type TabValue = "COMMENTS" | "PROFILE" | "%future added value"; + export interface AppProps { - activeTab: "COMMENTS" | "PROFILE" | "%future added value"; - onTabClick: (tab: string) => void; + activeTab: TabValue; + onTabClick: (tab: TabValue) => void; } const App: StatelessComponent = props => {