s3si.ts/gui/src/App.tsx

21 lines
456 B
TypeScript
Raw Normal View History

2023-03-04 06:19:24 -05:00
import { getCurrent } from "@tauri-apps/api/window";
2023-03-03 09:06:14 -05:00
import { Routes, Route } from "react-router-dom";
import { Layout } from "components/Layout";
import { Home } from "pages/Home";
2023-03-04 06:19:24 -05:00
import { useEffect } from "react";
2023-03-03 07:03:08 -05:00
function App() {
2023-03-04 06:19:24 -05:00
useEffect(() => {
getCurrent().show()
}, [])
2023-03-03 07:03:08 -05:00
return (
2023-03-03 09:06:14 -05:00
<Routes>
<Route path='/' element={<Layout />}>
<Route index element={<Home />} />
</Route>
</Routes>
2023-03-03 07:03:08 -05:00
);
}
export default App;