refactor: upgrade deps

This commit is contained in:
lin onetwo 2022-09-05 18:52:19 +08:00
parent a5bcee553e
commit 2fba0cba7e
4 changed files with 21 additions and 21 deletions

View file

@ -4,6 +4,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import i18n from 'i18next';
import { ThemeProvider } from 'styled-components';
import { createRoot } from 'react-dom/client';
import StyledEngineProvider from '@material-ui/core/StyledEngineProvider';
import DateFnsUtils from '@material-ui/lab/AdapterDateFns';
@ -40,11 +41,9 @@ function App(): JSX.Element {
);
}
async function runApp(): Promise<void> {
void window.remote.setVisualZoomLevelLimits(1, 1);
ReactDOM.render(<App />, document.querySelector('#app'));
void window.remote.setVisualZoomLevelLimits(1, 1);
const container = document.getElementById('app');
const root = createRoot(container!);
root.render(<App />);
await initI18N();
}
void runApp();
void initI18N();

View file

@ -43,6 +43,7 @@ export const NativeServiceIPCDescriptor = {
pickDirectory: ProxyPropertyType.Function,
pickFile: ProxyPropertyType.Function,
quit: ProxyPropertyType.Function,
path: ProxyPropertyType.Function,
showElectronMessageBox: ProxyPropertyType.Function,
},
};