This commit is contained in:
Belén Curcio
2018-09-25 13:37:22 -03:00
parent 303c7489e4
commit 3edaa6bf2d
4 changed files with 13 additions and 21 deletions
+2 -3
View File
@@ -16,9 +16,8 @@ import ProfileQuery from "../tabs/profile/queries/ProfileQuery";
import * as styles from "./App.css";
export interface AppProps {
activeTab: "COMMENTS" | "PROFILE" | "%future added value";
activeTab: "COMMENTS" | "PROFILE" | "%future added value" | string;
onActiveTab: SetActiveTabMutation;
signedIn: boolean;
}
const App: StatelessComponent<AppProps> = props => {
@@ -29,7 +28,7 @@ const App: StatelessComponent<AppProps> = props => {
onTabClick={tab => props.onActiveTab({ tab })}
>
<Tab tabId="COMMENTS">Comments</Tab>
{props.signedIn && <Tab tabId="PROFILE">My Profile</Tab>}
<Tab tabId="PROFILE">My Profile</Tab>
</TabBar>
<TabContent activeTab={props.activeTab}>
<TabPane tabId="COMMENTS">