[next] Broadcast mutation events (#2083)

* feat: Implement mutation events

* fix: correct testcase name
This commit is contained in:
Kiwi
2018-11-20 15:44:07 +01:00
committed by GitHub
parent 1a65b734d3
commit ecdb4e1307
6 changed files with 70 additions and 3 deletions
@@ -35,6 +35,7 @@ export class UserBoxContainer extends Component<InnerProps> {
private handleClose = () => this.props.setAuthPopupState({ open: false });
private handleSignIn = () => this.props.showAuthPopup({ view: "SIGN_IN" });
private handleRegister = () => this.props.showAuthPopup({ view: "SIGN_UP" });
private handleSignOut = () => this.props.signOut();
public render() {
const {
@@ -42,13 +43,12 @@ export class UserBoxContainer extends Component<InnerProps> {
authPopup: { open, focus, view },
},
me,
signOut,
} = this.props;
if (me) {
return (
<UserBoxAuthenticated
onSignOut={signOut}
onSignOut={this.handleSignOut}
// TODO: why nullable?
username={me.username!}
/>