move to koa and add user pages

This commit is contained in:
ntr committed 2022-08-07 14:27:13 +10:00
1 parent b4114a2440
commit bd32044427
11 files changed
+1079 -107

No files matched your search

+2 -3
View File
@@ -8,7 +8,7 @@ import actions from './actions';
import Header from './components/header';
import Home from './routes/home';
import Profile from './routes/profile';
import User from './routes/user';
const store = mcratesStore();
@@ -20,8 +20,7 @@ const App = () => (
<Header />
<Router>
<Route path="/" component={Home} />
<Route path="/profile/" component={Profile} user="me" />
<Route path="/profile/:user" component={Profile} />
<Route path="/user/:userId" component={User} />
</Router>
</div>
</Provider>