mirror of
https://github.com/wassname/talk.git
synced 2026-07-04 14:49:20 +08:00
14 lines
454 B
JavaScript
14 lines
454 B
JavaScript
import { connect } from 'react-redux';
|
|
import { bindActionCreators } from 'redux';
|
|
import { showSignInDialog } from 'plugin-api/beta/client/actions/stream';
|
|
import SignInButton from '../components/SignInButton';
|
|
|
|
const mapStateToProps = ({ auth }) => ({
|
|
currentUser: auth.user,
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch =>
|
|
bindActionCreators({ showSignInDialog }, dispatch);
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SignInButton);
|