forked from YasminGd/Appsus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroot-cmp.jsx
More file actions
28 lines (26 loc) · 1010 Bytes
/
Copy pathroot-cmp.jsx
File metadata and controls
28 lines (26 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { AppHeader } from './cmps/app-header.jsx'
import { About } from './views/about.jsx'
import { Home } from './views/home.jsx'
import { MailApp } from './apps/mail/views/mail-app.jsx'
import { NoteApp } from './apps/note/views/note-app.jsx'
import { MailDetails } from './apps/mail/views/mail-details.jsx'
const Router = ReactRouterDOM.HashRouter
const { Route, Switch } = ReactRouterDOM
export function App() {
return (
<Router>
<section className="app">
<AppHeader />
<Switch>
<Route path="/mail/details/:mailId" component={MailDetails} />
<Route path="/mail/:mailType" component={MailApp} />
<Route path="/mail" component={MailApp} />
<Route path="/note/new-note" component={NoteApp} />
<Route path="/note/:noteType?" component={NoteApp} />
<Route path="/about" component={About} />
<Route path="/" component={Home} />
</Switch>
</section>
</Router>
)
}