mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
fix: improve typings
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user