@@ -6,7 +6,7 @@ import { useDispatch, useSelector } from 'react-redux';
66import { Either as EitherConfig , Select as SelectConfig } from './ConfigElement' ;
77import MenuGroup from './MenuGroup' ;
88
9- import * as actions from './actions ' ;
9+ import * as config from './reducers/configuration ' ;
1010import State from './state' ;
1111import {
1212 AssemblyFlavor ,
@@ -33,19 +33,19 @@ const ConfigMenu: React.FC = () => {
3333 const processAssembly = useSelector ( ( state : State ) => state . configuration . processAssembly ) ;
3434
3535 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 ] ) ;
4141 const changeAssemblyFlavor =
42- useCallback ( ( a : AssemblyFlavor ) => dispatch ( actions . changeAssemblyFlavor ( a ) ) , [ dispatch ] ) ;
42+ useCallback ( ( a : AssemblyFlavor ) => dispatch ( config . changeAssemblyFlavor ( a ) ) , [ dispatch ] ) ;
4343 const changePairCharacters =
44- useCallback ( ( p : PairCharacters ) => dispatch ( actions . changePairCharacters ( p ) ) , [ dispatch ] ) ;
44+ useCallback ( ( p : PairCharacters ) => dispatch ( config . changePairCharacters ( p ) ) , [ dispatch ] ) ;
4545 const changeProcessAssembly =
46- useCallback ( ( p : ProcessAssembly ) => dispatch ( actions . changeProcessAssembly ( p ) ) , [ dispatch ] ) ;
46+ useCallback ( ( p : ProcessAssembly ) => dispatch ( config . changeProcessAssembly ( p ) ) , [ dispatch ] ) ;
4747 const changeDemangleAssembly =
48- useCallback ( ( d : DemangleAssembly ) => dispatch ( actions . changeDemangleAssembly ( d ) ) , [ dispatch ] ) ;
48+ useCallback ( ( d : DemangleAssembly ) => dispatch ( config . changeDemangleAssembly ( d ) ) , [ dispatch ] ) ;
4949
5050 return (
5151 < Fragment >
0 commit comments