Base du projet 'application ticketing'

This commit is contained in:
2020-02-17 22:28:57 +01:00
parent 2a72ac97ac
commit afa734f96d
64 changed files with 1798 additions and 685 deletions

View File

@ -1,12 +1,8 @@
import { Component, Fragment } from 'react'
import { hot } from 'react-hot-loader'
import { HashRouter } from 'react-router-dom' // ou BrowserRouter
import { Route, Switch, Redirect } from 'react-router'
import LoginPage from './pages/login';
import ChatPage from './pages/chat';
require('bulma/css/bulma.min.css')
import HomePage from './pages/home';
class App extends Component {
render () {
@ -14,10 +10,8 @@ class App extends Component {
<Fragment>
<HashRouter>
<Switch>
<Route path='/login' exact component={LoginPage} />
<Route path='/chat/:channel' component={ChatPage} />
<Route path='/chat' component={ChatPage} />
<Route component={() => <Redirect to="/login" />} />
<Route path='/home' exact component={HomePage} />
<Route component={() => <Redirect to="/home" />} />
</Switch>
</HashRouter>
</Fragment>