Skip to content

Commit 3202a67

Browse files
refactor(deeplink): reorder imports and clean up comments in handleSocialTraderPositionUrl
This commit reorganizes the import statements in `handleSocialTraderPositionUrl.ts` for better clarity and consistency. It also removes outdated comments regarding navigation behavior, streamlining the code for future maintenance.
1 parent 6abfeee commit 3202a67

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

app/core/DeeplinkManager/handlers/legacy/handleSocialTraderPositionUrl.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import NavigationService from '../../../NavigationService';
21
import Routes from '../../../../constants/navigation/Routes';
3-
import DevLogger from '../../../SDKConnect/utils/DevLogger';
2+
import NavigationService from '../../../NavigationService';
43
import ReactQueryService from '../../../ReactQueryService';
4+
import DevLogger from '../../../SDKConnect/utils/DevLogger';
55

66
interface HandleSocialTraderPositionUrlParams {
77
actionPath: string;
@@ -81,12 +81,6 @@ export const handleSocialTraderPositionUrl = ({
8181
);
8282
}
8383

84-
// Push Position on top of whatever the user was on. Back returns there:
85-
// - cold-start push: returns to Wallet Home (the app's initial route).
86-
// - in-app notification tap: returns to the Notifications panel.
87-
// - row tap from Profile (in-app): returns to Profile.
88-
// The trader's name in the position header is the affordance for
89-
// navigating onward to the trader's Profile.
9084
NavigationService.navigation.navigate(Routes.SOCIAL_LEADERBOARD.POSITION, {
9185
positionId,
9286
traderId,

0 commit comments

Comments
 (0)