fix: improve typings

This commit is contained in:
Chi Vinh Le
2018-10-03 00:41:51 +02:00
parent 0a17fc7e64
commit 45b39c9a0f
+4 -2
View File
@@ -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<AppProps> = props => {