Cleanup the route resolver a bit.

master
Tom Hacohen 7 years ago
parent 7dd8248aab
commit 6f9c783159

@ -30,7 +30,7 @@ const navigationRoutes: RouteItem[] = [
}, },
]; ];
const routeResolver = new RouteResolver({ export const routeResolver = new RouteResolver({
home: '', home: '',
journals: { journals: {
_base: 'journals', _base: 'journals',

@ -8,16 +8,7 @@ const USER = 'test@localhost';
const PASSWORD = 'SomePassword'; const PASSWORD = 'SomePassword';
const derived = EteSync.deriveKey(USER, PASSWORD); const derived = EteSync.deriveKey(USER, PASSWORD);
import { RouteResolver } from './routes'; import { routeResolver } from './App';
const routeResolver = new RouteResolver({
home: '',
journals: {
_base: 'journals',
_id: {
_base: ':journalUid',
},
},
});
export class JournalList extends React.Component { export class JournalList extends React.Component {
state: { state: {

Loading…
Cancel
Save