Skip to content

Commit

Permalink
fix: resolved routing (#10256)
Browse files Browse the repository at this point in the history
  • Loading branch information
likhith-deriv authored and vinu-deriv committed Oct 10, 2023
1 parent 24bc93c commit 7646a72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ const PageOverlayWrapper = observer(({ routes, subroutes }: PageOverlayWrapperPr
const { client, common, ui } = useStore();
const { is_mobile } = ui;
const { logout } = client;
const { is_from_derivgo, routeBackInApp } = common;
const { is_from_derivgo } = common;

const list_groups = routes.map(route_group => ({
icon: route_group.icon,
label: route_group?.getTitle(),
subitems: route_group?.subroutes?.length ? route_group.subroutes.map(sub => subroutes.indexOf(sub)) : [],
}));

const onClickClose = React.useCallback(() => routeBackInApp(history), [routeBackInApp, history]);
const onClickClose = React.useCallback(() => history.push(shared_routes.traders_hub), [history]);

const selected_route = getSelectedRoute({ routes: subroutes as Array<TRoute>, pathname: location.pathname });

Expand Down

0 comments on commit 7646a72

Please sign in to comment.