File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,10 @@ import React from 'react';
3
3
import { useDispatch , useSelector } from 'react-redux' ;
4
4
import { addChild } from '../../redux/reducers/slice/appStateSlice' ;
5
5
import { RootState } from '../../redux/store' ;
6
- import { PanoramaSharp } from '@mui/icons-material' ;
7
6
import { emitEvent } from '../../helperFunctions/socket' ;
8
7
9
- const roomCode = useSelector ( ( store : RootState ) => store . roomSlice . roomCode ) ;
10
-
11
8
function AddRoute ( { id } : AddRoutes ) : JSX . Element {
9
+ const roomCode = useSelector ( ( store : RootState ) => store . roomSlice . roomCode ) ;
12
10
const dispatch = useDispatch ( ) ;
13
11
const contextParam = useSelector ( ( store : RootState ) => store . contextSlice ) ;
14
12
const handleClick = ( id : number ) : void => {
@@ -27,8 +25,11 @@ function AddRoute({ id }: AddRoutes): JSX.Element {
27
25
childId : id ,
28
26
contextParam : contextParam
29
27
} ) ;
28
+
29
+ console . log ( 'emit addChildAction event is triggered in AddRoute!' ) ;
30
30
}
31
31
} ;
32
+
32
33
return (
33
34
< div style = { { padding : '1px' , float : 'right' } } >
34
35
< button id = { 'routeBtn' + id } onClick = { ( ) => handleClick ( id ) } >
You can’t perform that action at this time.
0 commit comments