Skip to content

Commit

Permalink
Swapping via jupiter
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler committed Sep 8, 2023
1 parent cfcca85 commit 231d360
Show file tree
Hide file tree
Showing 14 changed files with 1,310 additions and 343 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"dependencies": {
"@babel/preset-typescript": "7.21.0",
"@coral-xyz/anchor": "0.26.0",
"@coral-xyz/anchor": "^0.27.0",
"@gorhom/bottom-sheet": "4.4.6",
"@gorhom/portal": "1.0.14",
"@helium/account-fetch-cache": "^0.2.17",
Expand Down
7 changes: 5 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { AccountContext } from '@helium/account-fetch-cache-hooks'
import { DarkTheme, NavigationContainer } from '@react-navigation/native'
import MapboxGL from '@rnmapbox/maps'
import { ThemeProvider } from '@shopify/restyle'
import { JupiterProvider } from '@storage/JupiterProvider'
import { TokenListProvider } from '@storage/TokenListProvider'
import TokensProvider from '@storage/TokensProvider'
import globalStyles from '@theme/globalStyles'
Expand Down Expand Up @@ -129,8 +130,10 @@ const App = () => {
<TokenListProvider>
<TokensProvider>
<WalletSignProvider>
<NetworkAwareStatusBar />
<RootNavigator />
<JupiterProvider>
<NetworkAwareStatusBar />
<RootNavigator />
</JupiterProvider>
</WalletSignProvider>
</TokensProvider>
</TokenListProvider>
Expand Down
3 changes: 1 addition & 2 deletions src/features/swaps/SwapItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const SwapItem = ({
<Box
height={120}
style={getBackgroundColorStyle(pressed)}
borderRadius="xxl"
borderRadius="xl"
{...rest}
>
<Box flex={1} justifyContent="center" alignItems="center">
Expand All @@ -118,7 +118,6 @@ const SwapItem = ({
</Text>
<Box flexDirection="row">
<Text marginEnd="s" variant="h4">
{/** If last decimals are zeroes do not show */}
{!loading ? amount.toString() : t('generic.loading')}
</Text>
<Text variant="h4" color="secondaryText">{`${symbol}`}</Text>
Expand Down
Loading

0 comments on commit 231d360

Please sign in to comment.