Skip to content

Commit

Permalink
Add dexter
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Jul 15, 2023
1 parent 52887d9 commit 007cb57
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/mobile/src/background/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ init(
"https://index.ion.wtf",
"https://ion.wtf",
"https://app.calculated.fi",
"https://app.dexter.zone",
],
["https://wallet.keplr.app"],
CommunityChainInfoRepo,
Expand Down
5 changes: 5 additions & 0 deletions packages/mobile/src/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ import {
IBCXWebpageScreen,
IONDaoWebpageScreen,
CalcFiWebpageScreen,
DexterWebpageScreen,
} from "./screens/web/webpages";
import { WebpageScreenScreenOptionsPreset } from "./screens/web/components/webpage-screen";
import Bugsnag from "@bugsnag/react-native";
Expand Down Expand Up @@ -298,6 +299,9 @@ const {
"Web.Calc": {
upperScreenName: "Web",
},
"Web.Dexter": {
upperScreenName: "Web",
},
}).withParams<{
"Register.NewMnemonic": {
registerConfig: RegisterConfig;
Expand Down Expand Up @@ -914,6 +918,7 @@ export const WebNavigation: FunctionComponent = () => {
<Stack.Screen name="Web.IBCX" component={IBCXWebpageScreen} />
<Stack.Screen name="Web.IONDao" component={IONDaoWebpageScreen} />
<Stack.Screen name="Web.Calc" component={CalcFiWebpageScreen} />
<Stack.Screen name="Web.Dexter" component={DexterWebpageScreen} />
</Stack.Navigator>
);
};
Expand Down
20 changes: 20 additions & 0 deletions packages/mobile/src/screens/web/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,23 @@ export const CalcFiItem: Item = {
key: "CalcFi",
component: CalcFiImage,
};

const DexterImage: FunctionComponent = () => {
const smartNavigation = useSmartNavigation();

return (
<WebpageImageButton
name="Dexter"
source={require("../../assets/image/webpage/dexter.png")}
onPress={() => {
smartNavigation.pushSmart("Web.Dexter", {});
}}
imageAlignCenter={true}
/>
);
};

export const DexterItem: Item = {
key: "Dexter",
component: DexterImage,
};
3 changes: 3 additions & 0 deletions packages/mobile/src/screens/web/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
IBCXItem,
IONDaoItem,
CalcFiItem,
DexterItem,
} from "./constants";
import { WebpageImageButton } from "./common";

Expand All @@ -46,6 +47,7 @@ const WebpagesPerLabel: {
IBCXItem,
IONDaoItem,
CalcFiItem,
DexterItem,
],
},
{
Expand All @@ -62,6 +64,7 @@ const WebpagesPerLabel: {
StreamSwapItem,
IBCXItem,
CalcFiItem,
DexterItem,
],
},
{
Expand Down
12 changes: 12 additions & 0 deletions packages/mobile/src/screens/web/webpages/dexter.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React, { FunctionComponent } from "react";
import { WebpageScreen } from "../components/webpage-screen";

export const DexterWebpageScreen: FunctionComponent = () => {
return (
<WebpageScreen
name="Dexter"
source={{ uri: "https://app.dexter.zone" }}
originWhitelist={["https://app.dexter.zone"]}
/>
);
};
1 change: 1 addition & 0 deletions packages/mobile/src/screens/web/webpages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ export * from "./streamswap";
export * from "./ibcx";
export * from "./ion-dao";
export * from "./calc";
export * from "./dexter";

0 comments on commit 007cb57

Please sign in to comment.