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

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

Loading…
Cancel
Save