22 lines
494 B
TypeScript
22 lines
494 B
TypeScript
import React from 'react'
|
|
import './App.css'
|
|
|
|
import { BrowserRouter, Switch, Route } from 'react-router-dom'
|
|
import { Dashboard } from './pages/Dashboard'
|
|
import { Session } from './pages/Session'
|
|
|
|
function App() {
|
|
return (
|
|
<BrowserRouter>
|
|
<div className="App">
|
|
<Switch>
|
|
<Route path="/sessions/:clientId" component={Session} />
|
|
<Route exact path="/" component={Dashboard} />
|
|
</Switch>
|
|
</div>
|
|
</BrowserRouter>
|
|
)
|
|
}
|
|
|
|
export default App
|