File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
web-app/src/containers/Tutorial/components Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,10 @@ const SideMenu = (props: Props) => {
4545 key = "level"
4646 disabled = { props . page === 'level' }
4747 style = { props . page === 'level' ? styles . active : { } }
48- onClick = { ( ) => props . setPage ( 'level' ) }
48+ onClick = { ( ) => {
49+ onMenuClose ( )
50+ props . setPage ( 'level' )
51+ } }
4952 >
5053 < Icon type = "detail" size = "small" color = "#EBEBEB" />
5154 < span style = { styles . itemText } > Level</ span >
@@ -54,7 +57,10 @@ const SideMenu = (props: Props) => {
5457 key = "review"
5558 disabled = { props . page === 'review' }
5659 style = { props . page === 'review' ? styles . active : { } }
57- onClick = { ( ) => props . setPage ( 'review' ) }
60+ onClick = { ( ) => {
61+ onMenuClose ( )
62+ props . setPage ( 'review' )
63+ } }
5864 >
5965 < Icon type = "list" size = "small" color = "#EBEBEB" />
6066 < span style = { styles . itemText } > Review</ span >
@@ -64,7 +70,10 @@ const SideMenu = (props: Props) => {
6470 key = "settings"
6571 disabled = { props . page === 'settings' }
6672 style = { props . page === 'settings' ? styles . active : { } }
67- onClick = { ( ) => props . setPage ( 'settings' ) }
73+ onClick = { ( ) => {
74+ onMenuClose ( )
75+ props . setPage ( 'settings' )
76+ } }
6877 >
6978 < Icon type = "set" size = "small" color = "#EBEBEB" />
7079 < span style = { styles . itemText } > Settings</ span >
You can’t perform that action at this time.
0 commit comments