@@ -6,7 +6,22 @@ import { connect } from 'react-redux';
6
6
import { Dispatch } from 'redux' ;
7
7
8
8
const 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
+ } ;
10
25
} ;
11
26
12
27
const mapDispatchToProps = ( dispatch : Dispatch ) => {
@@ -24,6 +39,7 @@ const mapDispatchToProps = (dispatch: Dispatch) => {
24
39
sendInfo : ( message : string ) => dispatch ( NotificationActions . info ( message ) ) ,
25
40
sendSuccess : ( message : string ) => dispatch ( NotificationActions . success ( message ) ) ,
26
41
success : ( message : string ) => dispatch ( NotificationActions . success ( message ) ) ,
42
+ toggleLockCode : ( ) => dispatch ( SubmissionActions . toggleLockCode ( ) ) ,
27
43
updateDisplayDebugLog : ( log : string ) => dispatch ( GameLogActions . updateDisplayDebugLog ( log ) ) ,
28
44
updateGameLog : ( player1DebugLog : string , player2DebugLog : string , gameLog : string ) =>
29
45
dispatch ( GameLogActions . updateGameLog ( player1DebugLog , player2DebugLog , gameLog ) ) ,
0 commit comments