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 committed Sep 25, 2023
1 parent a5eba9f commit b41492b
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

1 comment on commit b41492b

@vercel
Copy link

@vercel vercel bot commented on b41492b Sep 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.vercel.app
binary.sx
deriv-app.binary.sx
deriv-app-git-master.binary.sx

Please sign in to comment.