@@ -6,7 +6,22 @@ import { connect } from 'react-redux';
66import { Dispatch } from 'redux' ;
77
88const mapStateToProps = ( rootState : RootState ) => {
9- return { } ;
9+ return {
10+ announcements : rootState . notification . announcements ,
11+ commitHash : rootState . submission . commitHash ,
12+ currentAiId : rootState . submission . currentAiId ,
13+ isCodeLocked : rootState . submission . isCodeLocked ,
14+ isNotificationPresent : rootState . user . isNotificationPresent ,
15+ isSocketPresent : rootState . user . isSocketPresent ,
16+ loading : rootState . notification . loading ,
17+ mapId : rootState . submission . mapId ,
18+ notifications : rootState . notification . notifications ,
19+ playerId1 : rootState . submission . playerId1 ,
20+ playerId2 : rootState . submission . playerId2 ,
21+ request : rootState . submission . request ,
22+ socketMessage : rootState . user . socketMessage ,
23+ userId : rootState . user . userId ,
24+ } ;
1025} ;
1126
1227const mapDispatchToProps = ( dispatch : Dispatch ) => {
@@ -24,6 +39,7 @@ const mapDispatchToProps = (dispatch: Dispatch) => {
2439 sendInfo : ( message : string ) => dispatch ( NotificationActions . info ( message ) ) ,
2540 sendSuccess : ( message : string ) => dispatch ( NotificationActions . success ( message ) ) ,
2641 success : ( message : string ) => dispatch ( NotificationActions . success ( message ) ) ,
42+ toggleLockCode : ( ) => dispatch ( SubmissionActions . toggleLockCode ( ) ) ,
2743 updateDisplayDebugLog : ( log : string ) => dispatch ( GameLogActions . updateDisplayDebugLog ( log ) ) ,
2844 updateGameLog : ( player1DebugLog : string , player2DebugLog : string , gameLog : string ) =>
2945 dispatch ( GameLogActions . updateGameLog ( player1DebugLog , player2DebugLog , gameLog ) ) ,
0 commit comments