@@ -4,6 +4,7 @@ import { RootState } from 'app/reducers';
4
4
import * as SubmissionInterfaces from 'app/types/code/Submission' ;
5
5
import * as NotificationInterfaces from 'app/types/Notification' ;
6
6
import * as SocketHandlerInterfaces from 'app/types/SocketHandler' ;
7
+ import { UserDetails } from 'app/types/User' ;
7
8
import { connect } from 'react-redux' ;
8
9
import { Dispatch } from 'redux' ;
9
10
@@ -46,6 +47,7 @@ const mapDispatchToProps = (dispatch: Dispatch) => {
46
47
info : ( message : string ) => dispatch ( NotificationActions . info ( message ) ) ,
47
48
logout : ( ) => dispatch ( UserActions . logout ( ) ) ,
48
49
resetNotificationState : ( ) => dispatch ( NotificationActions . resetNotificationState ( ) ) ,
50
+ resetUserState : ( ) => dispatch ( UserActions . resetUserState ( ) ) ,
49
51
sendCompileError : ( error : string ) => dispatch ( SubmissionActions . handleCompileError ( error ) ) ,
50
52
sendCompileSuccess : ( ) => dispatch ( SubmissionActions . handleCompileSuccess ( ) ) ,
51
53
sendDebugRunError : ( ) => dispatch ( SubmissionActions . handleDebugRunError ( ) ) ,
@@ -69,6 +71,7 @@ const mapDispatchToProps = (dispatch: Dispatch) => {
69
71
dispatch ( GameLogActions . updateMatchPlayerId ( matchPlayerId ) ) ,
70
72
updateRequest : ( request : SubmissionInterfaces . Request ) =>
71
73
dispatch ( SubmissionActions . changeCurrentRequest ( request ) ) ,
74
+ updateUserDetails : ( details : UserDetails ) => dispatch ( UserActions . updateUserDetails ( details ) ) ,
72
75
} ;
73
76
} ;
74
77
0 commit comments