@@ -6,7 +6,7 @@ import { useDispatch, useSelector } from 'react-redux';
6
6
import { Either as EitherConfig , Select as SelectConfig } from './ConfigElement' ;
7
7
import MenuGroup from './MenuGroup' ;
8
8
9
- import * as actions from './actions ' ;
9
+ import * as config from './reducers/configuration ' ;
10
10
import State from './state' ;
11
11
import {
12
12
AssemblyFlavor ,
@@ -33,19 +33,19 @@ const ConfigMenu: React.FC = () => {
33
33
const processAssembly = useSelector ( ( state : State ) => state . configuration . processAssembly ) ;
34
34
35
35
const dispatch = useDispatch ( ) ;
36
- const changeAceTheme = useCallback ( ( t : string ) => dispatch ( actions . changeAceTheme ( t ) ) , [ dispatch ] ) ;
37
- const changeMonacoTheme = useCallback ( ( t : string ) => dispatch ( actions . changeMonacoTheme ( t ) ) , [ dispatch ] ) ;
38
- const changeKeybinding = useCallback ( ( k : string ) => dispatch ( actions . changeKeybinding ( k ) ) , [ dispatch ] ) ;
39
- const changeOrientation = useCallback ( ( o : Orientation ) => dispatch ( actions . changeOrientation ( o ) ) , [ dispatch ] ) ;
40
- const changeEditorStyle = useCallback ( ( e : Editor ) => dispatch ( actions . changeEditor ( e ) ) , [ dispatch ] ) ;
36
+ const changeAceTheme = useCallback ( ( t : string ) => dispatch ( config . changeAceTheme ( t ) ) , [ dispatch ] ) ;
37
+ const changeMonacoTheme = useCallback ( ( t : string ) => dispatch ( config . changeMonacoTheme ( t ) ) , [ dispatch ] ) ;
38
+ const changeKeybinding = useCallback ( ( k : string ) => dispatch ( config . changeKeybinding ( k ) ) , [ dispatch ] ) ;
39
+ const changeOrientation = useCallback ( ( o : Orientation ) => dispatch ( config . changeOrientation ( o ) ) , [ dispatch ] ) ;
40
+ const changeEditorStyle = useCallback ( ( e : Editor ) => dispatch ( config . changeEditor ( e ) ) , [ dispatch ] ) ;
41
41
const changeAssemblyFlavor =
42
- useCallback ( ( a : AssemblyFlavor ) => dispatch ( actions . changeAssemblyFlavor ( a ) ) , [ dispatch ] ) ;
42
+ useCallback ( ( a : AssemblyFlavor ) => dispatch ( config . changeAssemblyFlavor ( a ) ) , [ dispatch ] ) ;
43
43
const changePairCharacters =
44
- useCallback ( ( p : PairCharacters ) => dispatch ( actions . changePairCharacters ( p ) ) , [ dispatch ] ) ;
44
+ useCallback ( ( p : PairCharacters ) => dispatch ( config . changePairCharacters ( p ) ) , [ dispatch ] ) ;
45
45
const changeProcessAssembly =
46
- useCallback ( ( p : ProcessAssembly ) => dispatch ( actions . changeProcessAssembly ( p ) ) , [ dispatch ] ) ;
46
+ useCallback ( ( p : ProcessAssembly ) => dispatch ( config . changeProcessAssembly ( p ) ) , [ dispatch ] ) ;
47
47
const changeDemangleAssembly =
48
- useCallback ( ( d : DemangleAssembly ) => dispatch ( actions . changeDemangleAssembly ( d ) ) , [ dispatch ] ) ;
48
+ useCallback ( ( d : DemangleAssembly ) => dispatch ( config . changeDemangleAssembly ( d ) ) , [ dispatch ] ) ;
49
49
50
50
return (
51
51
< Fragment >
0 commit comments