-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Move Link & router code to /navigation
- Loading branch information
Showing
12 changed files
with
25 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...app-core/hooks/useUniversalRouteParams.ts → ...res/app-core/navigation/useRouteParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { UniversalRouteScreenProps } from './useRouteParams.types' | ||
|
||
/** --- useRouteParams() -------------------------------------------------------------- */ | ||
/** -i- Gets the route search and query params on both web and mobile */ | ||
export const useRouteParams = (routeScreenProps: UniversalRouteScreenProps) => { | ||
const { params, searchParams } = routeScreenProps | ||
return { ...params, ...searchParams } | ||
} |
6 changes: 3 additions & 3 deletions
6
...ures/app-core/hooks/useUniversalRouter.ts → features/app-core/navigation/useRouter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
11 changes: 5 additions & 6 deletions
11
.../app-core/hooks/useUniversalRouter.web.ts → ...ures/app-core/navigation/useRouter.web.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters