Able to Sign In

This commit is contained in:
Belen Curcio
2018-08-14 13:11:35 -03:00
parent c40e5c58b2
commit 7c5ff1bcb1
5 changed files with 42 additions and 6 deletions
@@ -24,7 +24,7 @@ export const render = ({ error, props }: ReadyState<StreamQueryResponse>) => {
return <div>{error.message}</div>;
}
if (props) {
return <StreamContainer asset={props.asset} />;
return <StreamContainer asset={props.asset} user={props.me} />;
}
return <div>Loading</div>;
};
@@ -38,6 +38,12 @@ const StreamQuery: StatelessComponent<InnerProps> = ({
asset(id: $assetID) {
...StreamContainer_asset
}
me {
id
username
displayName
role
}
}
`}
variables={{