From cea3ecbf519209a3eb81c12986f3b569d7f9117d Mon Sep 17 00:00:00 2001 From: Luka Skukan Date: Tue, 24 Jan 2017 14:53:38 +0100 Subject: [PATCH] Add support for onClick property to LogoutLink --- src/components/LogoutLink.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/LogoutLink.js b/src/components/LogoutLink.js index c60a7e3..0e37030 100644 --- a/src/components/LogoutLink.js +++ b/src/components/LogoutLink.js @@ -30,6 +30,10 @@ export default class LogoutLink extends React.Component { if (!this.state.disabled) { this.setState({ disabled: true }); + if (this.props.onClick) { + this.props.onClick(e); + } + UserActions.logout(() => { this._performRedirect(primaryRedirectTo); });