This commit is contained in:
Billy Vong 2021-12-20 10:45:44 -05:00
parent 517066a710
commit 6641ca9c73

@ -45,7 +45,7 @@ interface IProps {
hostname: string; hostname: string;
player: IPlayer; player: IPlayer;
router: IRouter; router: IRouter;
vim: boolean; vim?: boolean;
} }
// TODO: try to removve global symbols // TODO: try to removve global symbols
@ -703,12 +703,14 @@ export function Root(props: IProps): React.ReactElement {
theme: Settings.MonacoTheme, theme: Settings.MonacoTheme,
insertSpaces: Settings.MonacoInsertSpaces, insertSpaces: Settings.MonacoInsertSpaces,
fontSize: Settings.MonacoFontSize, fontSize: Settings.MonacoFontSize,
vim: Settings.MonacoVim,
}} }}
save={(options: Options) => { save={(options: Options) => {
setOptions(options); setOptions(options);
Settings.MonacoTheme = options.theme; Settings.MonacoTheme = options.theme;
Settings.MonacoInsertSpaces = options.insertSpaces; Settings.MonacoInsertSpaces = options.insertSpaces;
Settings.MonacoFontSize = options.fontSize; Settings.MonacoFontSize = options.fontSize;
Settings.MonacoVim = options.vim;
}} }}
/> />
</div> </div>