23 | You've logged in!
24 |
{user.username}
25 |
{user.attributes['email']}
26 |
27 |
28 |
29 |
30 | ) : (
31 | <>>
32 | )}
33 |
34 | );
35 |
36 | const mapStateToProps = (state: State) => ({
37 | user: state.authState.currentUser,
38 | loggedIn: state.authState.loggedIn
39 | });
40 |
41 | const mapDispatchToProps = (dispatch: Dispatch) => ({
42 | logout: bindActionCreators(logout, dispatch)
43 | });
44 |
45 | export default compose