master
Tom Hacohen 4 years ago
parent 1f1d3b6a89
commit 2edc95cce7

@ -14,6 +14,7 @@ import { routeResolver } from "./App";
import AppBarOverride from "./widgets/AppBarOverride"; import AppBarOverride from "./widgets/AppBarOverride";
import LoadingIndicator from "./widgets/LoadingIndicator"; import LoadingIndicator from "./widgets/LoadingIndicator";
import SearchableAddressBook from "./components/SearchableAddressBook";
import Journals from "./Journals"; import Journals from "./Journals";
import Settings from "./Settings"; import Settings from "./Settings";
@ -78,12 +79,9 @@ export default function SyncGate() {
<Redirect to={routeResolver.getRoute("pim")} /> <Redirect to={routeResolver.getRoute("pim")} />
)} )}
/> />
{false && (
<>
<Route <Route
path={routeResolver.getRoute("pim")} path={routeResolver.getRoute("pim")}
render={({ history }) => ( >
<>
<AppBarOverride title="EteSync" /> <AppBarOverride title="EteSync" />
<PimRouter <PimRouter
etesync={etesync} etesync={etesync}
@ -91,9 +89,32 @@ export default function SyncGate() {
syncInfo={false as any} syncInfo={false as any}
history={history} history={history}
/> />
</> <Switch>
)} <Route
/> path={routeResolver.getRoute("pim")}
exact
>
<Redirect to={routeResolver.getRoute("pim.events")} />
</Route>
<Route
path={routeResolver.getRoute("pim.contacts")}
>
<SearchableAddressBook onItemClick={() => 1} />
</Route>
<Route
path={routeResolver.getRoute("pim.events")}
>
events
</Route>
<Route
path={routeResolver.getRoute("pim.tasks")}
>
tasks
</Route>
</Switch>
</Route>
{false && (
<>
<Route <Route
path={routeResolver.getRoute("journals")} path={routeResolver.getRoute("journals")}
render={({ location, history }) => ( render={({ location, history }) => (

Loading…
Cancel
Save