add theme provider

This commit is contained in:
2025-12-14 22:25:01 +05:00
parent d1e64382a4
commit 28fc3ab0fb
2 changed files with 183 additions and 1 deletions

View File

@ -1,9 +1,18 @@
import { createRoot } from 'react-dom/client';
import App from './App';
import { ThemeProvider, CssBaseline } from '@mui/material';
import { defaultTheme } from '../theme/themes'; // <-- поправь путь, если themes.ts лежит в другом месте
const container = document.getElementById('root') as HTMLElement;
const root = createRoot(container);
root.render(<App />);
root.render(
<ThemeProvider theme={defaultTheme}>
<CssBaseline />
<App />
</ThemeProvider>,
);
// calling IPC exposed from preload script
window.electron?.ipcRenderer.once('ipc-example', (arg) => {