Skip to content

Commit

Permalink
Merge pull request #261 from Crossbell-Box/develop
Browse files Browse the repository at this point in the history
Update WalletConnectModal import
  • Loading branch information
dohooo authored Nov 22, 2023
2 parents 9450b49 + 9c2e8df commit 669bbeb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-poets-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"xlog": minor
---

Update WalletConnectModal import
5 changes: 0 additions & 5 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import "./shim";
import "expo-dev-client";
import "./error-handler";
import "@/providers/connect-kit-provider/setup-react-account";

import { useEffect } from "react";
import { I18nextProvider } from "react-i18next";
import { StyleSheet } from "react-native";
Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import "./shim";
import "expo-dev-client";
import "./error-handler";
import "@/providers/connect-kit-provider/setup-react-account";
import "react-native-gesture-handler";
import { registerRootComponent } from "expo";
import * as SplashScreen from "expo-splash-screen";
Expand Down
1 change: 0 additions & 1 deletion shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import "text-encoding-polyfill";
import "react-native-url-polyfill/auto";
import "react-native-get-random-values";
import "@ethersproject/shims";
import "@walletconnect/react-native-compat";
import { Platform } from "react-native";
import { btoa, atob, toByteArray } from "react-native-quick-base64";

Expand Down
2 changes: 1 addition & 1 deletion src/components/LoginButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function ConnectBtn({
}) {
const i18n = useTranslation();
const navigation = useRootNavigation();
const { open, isOpen, provider } = useWalletConnectModal();
const { open, isOpen } = useWalletConnectModal();
const toast = useToastController();

const isActive = useAppIsActive();
Expand Down
4 changes: 2 additions & 2 deletions src/components/WalletConnectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { WalletConnectModal as Modal, type IProviderMetadata } from "@walletconn
import * as Clipboard from "expo-clipboard";
import { resolveScheme } from "expo-linking";

import { WALLET_PROJECT_ID, WALLET_RELAY_URL } from "@/constants/env";
import { OIA_HOST, WALLET_PROJECT_ID, WALLET_RELAY_URL } from "@/constants/env";
import { useThemeStore } from "@/hooks/use-theme-store";

const onCopyClipboard = (value: string) => {
Expand Down Expand Up @@ -38,7 +38,7 @@ const providerMetadata: IProviderMetadata = {
description: "Connect with WalletConnect",
redirect: {
native: `${resolveScheme({})}://`,
universal: "https://oia.xlog.app/",
universal: OIA_HOST,
},
};

Expand Down

0 comments on commit 669bbeb

Please sign in to comment.