mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
import { AppShell, SideBar, Content, AuthProvider, Settings, Modal, LoginPage, SignupPage, Quests } from 'utopia-ui'
|
|
import { bottomRoutes, routes } from './routes/sidebar'
|
|
import { Route, Routes } from 'react-router-dom'
|
|
import MapContainer from "./pages/MapContainer"
|
|
import './App.css'
|
|
import Concept from './pages/Concept'
|
|
import { userApi } from './api/userApi'
|
|
import Projects from './pages/Projects'
|
|
import { ProjectView } from './pages/ProjectView'
|
|
|
|
|
|
|
|
function App() {
|
|
|
|
return (
|
|
|
|
<div className="App overflow-x-hidden">
|
|
|
|
<AuthProvider userApi={new userApi}>
|
|
<AppShell appName="Utopia Game">
|
|
<Modal/>
|
|
<SideBar routes={routes} bottomRoutes={bottomRoutes}/>
|
|
<Content>
|
|
<Quests />
|
|
<Routes>
|
|
<Route path="/*" element={<MapContainer />} />
|
|
<Route path="/settings" element={<Settings />} />
|
|
<Route path="/concept" element={<Concept/>} />
|
|
<Route path="/projects" element={<Projects/>} />
|
|
<Route path="/projects/*" element={<ProjectView/>} />
|
|
<Route path="/login" element={<LoginPage/>} />
|
|
<Route path="/signup" element={<SignupPage/>} />
|
|
</Routes>
|
|
</Content>
|
|
</AppShell>
|
|
</AuthProvider>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default App
|