Add activeTab to local state

This commit is contained in:
Chi Vinh Le
2018-09-13 18:29:22 +02:00
parent db483849dd
commit ecc9eadc67
23 changed files with 120 additions and 44 deletions
@@ -11,15 +11,15 @@ interface InnerProps {
}
const AppContainer: StatelessComponent<InnerProps> = ({
local: { commentID },
local: { activeTab },
}) => {
return <App showPermalinkView={!!commentID} />;
return <App activeTab={activeTab} />;
};
const enhanced = withLocalStateContainer(
graphql`
fragment AppContainerLocal on Local {
commentID
activeTab
}
`
)(AppContainer);