Skip to content

Commit ea7fb17

Browse files
committed
chore: update main n app file
1 parent f0c2bda commit ea7fb17

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

plate-client/src/App.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { version } from 'react';
1+
import Layout from './components/layout/layout';
22

3-
function App() {
4-
return <h1>Vite + React {version}</h1>;
3+
export default function App() {
4+
return <Layout />;
55
}
6-
7-
export default App;

plate-client/src/main.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import { StrictMode } from 'react';
21
import { createRoot } from 'react-dom/client';
32
import './styles/index.css';
4-
import App from './App.tsx';
3+
import { RouterProvider } from 'react-router';
4+
import { router } from './routes/routes.ts';
55

66
createRoot(document.getElementById('root')!).render(
7-
<StrictMode>
8-
<App />
9-
</StrictMode>
7+
<RouterProvider router={router} />
108
);

0 commit comments

Comments
 (0)