Switch to redux and webpack
This commit is contained in:
parent
b247287075
commit
e389454535
97 changed files with 2722 additions and 2656 deletions
19
client/src/js/routes.js
Normal file
19
client/src/js/routes.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
import React from 'react';
|
||||
import { Route, IndexRoute } from 'react-router';
|
||||
import App from './containers/App';
|
||||
import Connect from './containers/Connect';
|
||||
import Chat from './containers/Chat';
|
||||
import Settings from './components/Settings';
|
||||
|
||||
export default function createRoutes() {
|
||||
return (
|
||||
<Route path="/" component={App}>
|
||||
<Route path="connect" component={Connect} />
|
||||
<Route path="settings" component={Settings} />
|
||||
<Route path="/:server" component={Chat} />
|
||||
<Route path="/:server/:channel" component={Chat} />
|
||||
<Route path="/:server/pm/:user" component={Chat} />
|
||||
<IndexRoute component={Settings} />
|
||||
</Route>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue