@@ -17,15 +17,11 @@ import {
1717 ProcessAssembly ,
1818} from './types' ;
1919
20- interface ConfigMenuProps {
21- close : ( ) => void ;
22- }
23-
2420const MONACO_THEMES = [
2521 'vs' , 'vs-dark' , 'vscode-dark-plus' ,
2622] ;
2723
28- const ConfigMenu : React . FC < ConfigMenuProps > = ( ) => {
24+ const ConfigMenu : React . FC = ( ) => {
2925 const keybinding = useSelector ( ( state : State ) => state . configuration . ace . keybinding ) ;
3026 const aceTheme = useSelector ( ( state : State ) => state . configuration . ace . theme ) ;
3127 const monacoTheme = useSelector ( ( state : State ) => state . configuration . monaco . theme ) ;
@@ -37,15 +33,19 @@ const ConfigMenu: React.FC<ConfigMenuProps> = () => {
3733 const processAssembly = useSelector ( ( state : State ) => state . configuration . processAssembly ) ;
3834
3935 const dispatch = useDispatch ( ) ;
40- const changeAceTheme = useCallback ( ( t ) => dispatch ( actions . changeAceTheme ( t ) ) , [ dispatch ] ) ;
41- const changeMonacoTheme = useCallback ( ( t ) => dispatch ( actions . changeMonacoTheme ( t ) ) , [ dispatch ] ) ;
42- const changeKeybinding = useCallback ( ( k ) => dispatch ( actions . changeKeybinding ( k ) ) , [ dispatch ] ) ;
43- const changeOrientation = useCallback ( ( o ) => dispatch ( actions . changeOrientation ( o ) ) , [ dispatch ] ) ;
44- const changeEditorStyle = useCallback ( ( e ) => dispatch ( actions . changeEditor ( e ) ) , [ dispatch ] ) ;
45- const changeAssemblyFlavor = useCallback ( ( a ) => dispatch ( actions . changeAssemblyFlavor ( a ) ) , [ dispatch ] ) ;
46- const changePairCharacters = useCallback ( ( p ) => dispatch ( actions . changePairCharacters ( p ) ) , [ dispatch ] ) ;
47- const changeProcessAssembly = useCallback ( ( p ) => dispatch ( actions . changeProcessAssembly ( p ) ) , [ dispatch ] ) ;
48- const changeDemangleAssembly = useCallback ( ( d ) => dispatch ( actions . changeDemangleAssembly ( d ) ) , [ dispatch ] ) ;
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 ] ) ;
41+ const changeAssemblyFlavor =
42+ useCallback ( ( a : AssemblyFlavor ) => dispatch ( actions . changeAssemblyFlavor ( a ) ) , [ dispatch ] ) ;
43+ const changePairCharacters =
44+ useCallback ( ( p : PairCharacters ) => dispatch ( actions . changePairCharacters ( p ) ) , [ dispatch ] ) ;
45+ const changeProcessAssembly =
46+ useCallback ( ( p : ProcessAssembly ) => dispatch ( actions . changeProcessAssembly ( p ) ) , [ dispatch ] ) ;
47+ const changeDemangleAssembly =
48+ useCallback ( ( d : DemangleAssembly ) => dispatch ( actions . changeDemangleAssembly ( d ) ) , [ dispatch ] ) ;
4949
5050 return (
5151 < Fragment >
0 commit comments