mirror of
https://github.com/wassname/talk.git
synced 2026-07-24 13:20:47 +08:00
Use more selectors
This commit is contained in:
@@ -2,9 +2,10 @@ import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { showSignInDialog } from 'plugin-api/beta/client/actions/stream';
|
||||
import SignInButton from '../components/SignInButton';
|
||||
import { isLoggedInSelector } from 'plugin-api/beta/client/selectors/auth';
|
||||
|
||||
const mapStateToProps = ({ auth }) => ({
|
||||
currentUser: auth.user,
|
||||
const mapStateToProps = state => ({
|
||||
isLoggedIn: isLoggedInSelector(state),
|
||||
});
|
||||
|
||||
const mapDispatchToProps = dispatch =>
|
||||
|
||||
Reference in New Issue
Block a user