mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-25 05:51:04 -08:00
refactor: upgrade deps
This commit is contained in:
parent
a5bcee553e
commit
2fba0cba7e
4 changed files with 21 additions and 21 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ export const NativeServiceIPCDescriptor = {
|
|||
pickDirectory: ProxyPropertyType.Function,
|
||||
pickFile: ProxyPropertyType.Function,
|
||||
quit: ProxyPropertyType.Function,
|
||||
path: ProxyPropertyType.Function,
|
||||
showElectronMessageBox: ProxyPropertyType.Function,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue