1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-23 05:24:18 +00:00
pds-2021-g2-nest/nest_frontend/App.js

34 lines
1.1 KiB
JavaScript
Raw Normal View History

import React from "react"
2021-04-29 14:58:31 +00:00
import Layout from "./components/interactive/Layout"
import { BrowserRouter } from "react-router-dom"
2021-04-29 14:58:31 +00:00
import GlobalTheme from "./components/providers/GlobalTheme"
import GlobalServer from "./components/providers/GlobalServer"
import GlobalUser from "./components/providers/GlobalUser"
import PageSwitcher from "./PageSwitcher"
2021-05-18 00:04:06 +00:00
import GlobalLanguage from "./components/providers/GlobalLanguage"
2021-04-20 22:09:13 +00:00
2021-04-20 22:07:39 +00:00
/**
* The main component of the webapp, the root of the render tree, what is displayed when the web page is visited.
*
* @returns {JSX.Element}
* @constructor
*/
2021-04-20 22:23:35 +00:00
export default function App() {
2021-04-20 22:09:13 +00:00
return (
2021-05-18 00:04:06 +00:00
<GlobalLanguage>
<GlobalServer>
<GlobalUser>
<GlobalTheme>
<BrowserRouter>
<Layout>
<PageSwitcher/>
</Layout>
</BrowserRouter>
</GlobalTheme>
</GlobalUser>
</GlobalServer>
</GlobalLanguage>
2021-04-20 22:09:13 +00:00
)
2021-04-20 22:07:39 +00:00
}