-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(DAppStore): Fix navigation in DAppsList component, disallow external apps Since the native wallet is only available in app and not in the web * modified Navigater component and placed normal and mini navigator on same stack fixed dapp store apps onPress navigation * fix: getNav on platform specific * removed view seed screen from normal navigation screen * feat(DAppStore): update import paths in getFromFile.ts (fix/mini-navigation) * feat(DAppStore): update DApp title in getFromFile query - Update the title of the DApp "toriwallet" to "Teritori OS Wallet" in the getFromFile query. * feat(DAppStore): hide Osmosis in Teritori OS Mobile mode * feat(DAppStore): show native wallet only on mobile. In the web show wallet manager * fix rebase conflict * fixed unused exports --------- Co-authored-by: Eng. Juan Combetto <[email protected]>
- Loading branch information
1 parent
2b017c5
commit ec83b99
Showing
20 changed files
with
227 additions
and
167 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,13 +1,34 @@ | ||
import { MiniModeNavigator } from "./MiniModeNavigator"; | ||
import { NormalModeNavigator } from "./NormalModeNavigator"; | ||
import { Platform } from "react-native"; | ||
|
||
import { Sidebar } from "./Sidebar"; | ||
import { getMiniModeScreens } from "./getMiniModeScreens"; | ||
import { getNormalModeScreens } from "./getNormalModeScreens"; | ||
import { getNav } from "./util"; | ||
|
||
import { useAppMode } from "@/hooks/useAppMode"; | ||
import { useOnboardedStatus } from "@/hooks/useOnboardStatus"; | ||
import { AppMode } from "@/utils/types/app-mode"; | ||
|
||
export const Navigator = () => { | ||
export const Navigator: React.FC = () => { | ||
const [appMode] = useAppMode(); | ||
const [isLoading] = useOnboardedStatus(); | ||
|
||
const { Nav, navigatorScreenOptions } = getNav(appMode as AppMode); | ||
|
||
if (appMode === "mini") { | ||
return <MiniModeNavigator />; | ||
if (isLoading && appMode === "mini") { | ||
return null; | ||
} | ||
return <NormalModeNavigator />; | ||
|
||
return ( | ||
<Nav.Navigator | ||
initialRouteName={appMode === "mini" ? "MiniTabs" : "Home"} | ||
drawerContent={() => | ||
Platform.OS === "web" || appMode === "mini" ? null : <Sidebar /> | ||
} | ||
screenOptions={navigatorScreenOptions as any} // FIXME: upgrade to expo-router | ||
> | ||
{getNormalModeScreens({ appMode: appMode as AppMode })} | ||
{appMode === "mini" ? getMiniModeScreens() : null} | ||
</Nav.Navigator> | ||
); | ||
}; |
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
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
Oops, something went wrong.