mirror of
https://github.com/wassname/talk.git
synced 2026-08-09 12:30:42 +08:00
Refactor talk-plugin-auth part 1
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { showSignInDialog } from 'coral-embed-stream/src/actions/login';
|
||||
import SignInButton from '../components//SignInButton';
|
||||
|
||||
const mapStateToProps = ({ auth }) => ({
|
||||
currentUser: auth.user,
|
||||
});
|
||||
|
||||
const mapDispatchToProps = dispatch =>
|
||||
bindActionCreators({ showSignInDialog }, dispatch);
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(SignInButton);
|
||||
Reference in New Issue
Block a user