Add auth target

This commit is contained in:
Chi Vinh Le
2018-08-08 01:03:49 +02:00
parent dff3e40005
commit 34fb53b3b0
16 changed files with 266 additions and 21 deletions
@@ -0,0 +1,25 @@
import * as React from "react";
import { StatelessComponent } from "react";
import { AppContainerLocal as Local } from "talk-auth/__generated__/AppContainerLocal.graphql";
import { graphql, withLocalStateContainer } from "talk-framework/lib/relay";
import App from "../components/App";
interface InnerProps {
local: Local;
}
const AppContainer: StatelessComponent<InnerProps> = ({ local: { view } }) => {
return <App view={view} />;
};
const enhanced = withLocalStateContainer<Local>(
graphql`
fragment AppContainerLocal on Local {
view
}
`
)(AppContainer);
export default enhanced;