All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 16s
- Updated package.json to remove MUI dependencies and add Ant Design. - Refactored App component to use Ant Design's Layout, Header, Footer, and Sidebar. - Created new Footer, Header, and Sidebar components using Ant Design. - Removed old Header component that used MUI. - Updated Home component to use Ant Design's Typography and Button. - Added global styles in index.less and theme styles in theme.less and layout.less. - Removed MUI theme configuration and replaced it with Ant Design's theming.
21 lines
527 B
TypeScript
21 lines
527 B
TypeScript
import { ConfigProvider } from 'antd';
|
|
import { StrictMode } from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
import App from './App.js';
|
|
import './index.less';
|
|
import './theme/theme.less';
|
|
|
|
const rootElement = document.getElementById('root');
|
|
if (rootElement) {
|
|
createRoot(rootElement).render(
|
|
<StrictMode>
|
|
<ConfigProvider theme={{}}>
|
|
<BrowserRouter>
|
|
<App />
|
|
</BrowserRouter>
|
|
</ConfigProvider>
|
|
</StrictMode>,
|
|
);
|
|
}
|