Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/components/App/App.tsx
| Show All 29 Lines | |||||
| import Agora from 'components/Agora'; | import Agora from 'components/Agora'; | ||||
| import { LoadingCtn } from 'components/Common/Atoms'; | import { LoadingCtn } from 'components/Common/Atoms'; | ||||
| import Cashtab from 'assets/cashtab_xec.png'; | import Cashtab from 'assets/cashtab_xec.png'; | ||||
| import './App.css'; | import './App.css'; | ||||
| import { WalletContext, isWalletContextLoaded } from 'wallet/context'; | import { WalletContext, isWalletContextLoaded } from 'wallet/context'; | ||||
| import { Route, Routes, useLocation, useNavigate } from 'react-router'; | import { Route, Routes, useLocation, useNavigate } from 'react-router'; | ||||
| import { App as CapacitorApp } from '@capacitor/app'; | import { App as CapacitorApp } from '@capacitor/app'; | ||||
| import { Capacitor } from '@capacitor/core'; | import { Capacitor } from '@capacitor/core'; | ||||
| import { useOsKeyboardChrome } from 'hooks/useOsKeyboardChrome'; | |||||
| // Easter egg imports not used in extension/src/components/App.js | // Easter egg imports not used in extension/src/components/App.js | ||||
| import TabCash from 'assets/tabcash.png'; | import TabCash from 'assets/tabcash.png'; | ||||
| import { hasEnoughToken } from 'wallet'; | import { hasEnoughToken } from 'wallet'; | ||||
| import { parseAddressInput } from 'validation'; | import { parseAddressInput } from 'validation'; | ||||
| import { | import { | ||||
| paybuttonDeepLinkToBip21Uri, | paybuttonDeepLinkToBip21Uri, | ||||
| payecashDeepLinkToBip21Uri, | payecashDeepLinkToBip21Uri, | ||||
| payecashDeepLinkToConnectRequest, | payecashDeepLinkToConnectRequest, | ||||
| Show All 17 Lines | import { | ||||
| ScreenWrapper, | ScreenWrapper, | ||||
| WalletCtn, | WalletCtn, | ||||
| CashtabLogo, | CashtabLogo, | ||||
| EasterEgg, | EasterEgg, | ||||
| DesktopLogo, | DesktopLogo, | ||||
| } from 'components/App/styles'; | } from 'components/App/styles'; | ||||
| const App = () => { | const App = () => { | ||||
| // Hide the mobile bottom nav only while the OS keyboard is on screen. | |||||
| useOsKeyboardChrome(); | |||||
| const ContextValue = useContext(WalletContext); | const ContextValue = useContext(WalletContext); | ||||
| if (!isWalletContextLoaded(ContextValue)) { | if (!isWalletContextLoaded(ContextValue)) { | ||||
| // Confirm we have all context required to load the page | // Confirm we have all context required to load the page | ||||
| return null; | return null; | ||||
| } | } | ||||
| const { | const { | ||||
| cashtabState, | cashtabState, | ||||
| loading, | loading, | ||||
| ▲ Show 20 Lines • Show All 581 Lines • Show Last 20 Lines | |||||