Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit c1d5a30

Browse files
authored
Merge pull request #280 from zallo-labs/Z-332-panel-ordering
Z 332 panel ordering
2 parents 8f20616 + 32faba3 commit c1d5a30

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

api/src/core/networks/networks.worker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class NetworkWorker extends Worker<NetworkQueue> {
3939
if (runningJobs.find((j) => j.data.chain === network.chain.key)) continue;
4040

4141
const chain = network.chain.key;
42-
this.queue.add(chain, { chain }, { repeat: { every: 2_000 /* ms */ }, ...NON_RETRYING_JOB });
42+
this.queue.add(chain, { chain }, { repeat: { every: 5_000 /* ms */ }, ...NON_RETRYING_JOB });
4343
}
4444
}
4545
}

app/src/components/layout/PanesNavigator.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,28 @@ export type PanesNavigatorProps = DefaultNavigatorOptions<
4040
>;
4141

4242
function PanesNavigator({ initialRouteName, screenOptions, children }: PanesNavigatorProps) {
43-
const { state, descriptors, navigation, NavigationContent } = useNavigationBuilder(StackRouter, {
43+
const { state, descriptors, NavigationContent } = useNavigationBuilder(StackRouter, {
4444
children,
4545
screenOptions,
4646
initialRouteName,
4747
});
4848
const { breakpoint } = useStyles();
4949

5050
const maxPanes = MAX_PANES[breakpoint];
51+
const last = state.routes[state.routes.length - 1];
5152
const routes = state.routes
5253
.map((route) => ({
5354
...route,
5455
position: state.routeNames.indexOf(route.name),
5556
}))
57+
.filter((r) => r.name === last.name || r.name === 'index' || last.name.includes(r.name))
5658
.sort((a, b) => a.position - b.position);
5759

5860
return (
5961
<NavigationContent>
6062
<Panes>
6163
{routes.map((route, i) => {
62-
const { navigation, render, options } = descriptors[route.key];
64+
const { navigation, render } = descriptors[route.key];
6365

6466
const focussed = state.index === i;
6567
const shown = routes.length - maxPanes <= i;

0 commit comments

Comments
 (0)