Skip to content

Commit 4d84ada

Browse files
author
ignaciosantise
committed
chore: removed dev.lab links, fixed link_mode tag in wallet
1 parent 4826382 commit 4d84ada

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

dapps/W3MWagmi/src/components/RequestModal.tsx

+14-15
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,19 @@ export function RequestModal({
5252
</Text>
5353
</>
5454
)}
55-
55+
{isCurrentRequestLinkMode && (
56+
<View
57+
style={[
58+
styles.linkModeContainer,
59+
{
60+
backgroundColor: Theme['accent-100'],
61+
},
62+
]}>
63+
<Text style={[styles.linkMode, {color: Theme['inverse-100']}]}>
64+
LINK MODE
65+
</Text>
66+
</View>
67+
)}
5668
{rpcResponse && (
5769
<>
5870
<Text style={[styles.title, {color: Theme['success-100']}]}>
@@ -71,19 +83,6 @@ export function RequestModal({
7183
</Text>
7284
</>
7385
)}
74-
{isCurrentRequestLinkMode && (
75-
<View
76-
style={[
77-
styles.linkModeContainer,
78-
{
79-
backgroundColor: Theme['accent-100'],
80-
},
81-
]}>
82-
<Text style={[styles.linkMode, {color: Theme['inverse-100']}]}>
83-
LINK MODE
84-
</Text>
85-
</View>
86-
)}
8786
</View>
8887
</Modal>
8988
);
@@ -135,7 +134,7 @@ const styles = StyleSheet.create({
135134
alignItems: 'center',
136135
justifyContent: 'center',
137136
alignSelf: 'center',
138-
marginTop: 20,
137+
marginBottom: 12,
139138
},
140139
linkMode: {
141140
fontSize: 12,

dapps/W3MWagmi/src/utils/misc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const getCustomWallets = () => {
88
image_url:
99
'https://docs.walletconnect.com/assets/images/web3walletLogo-54d3b546146931ceaf47a3500868a73a.png',
1010
mobile_link: 'rn-web3wallet://',
11-
link_mode: 'https://dev.lab.web3modal.com/walletkit_rn',
11+
link_mode: 'https://lab.web3modal.com/walletkit_rn',
1212
},
1313
{
1414
id: 'flutter-wallet',

wallets/rn_cli_wallet/src/components/Modal.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export default function Modal() {
1818
const onClose = useCallback(() => {
1919
if (open) {
2020
ModalStore.close();
21+
SettingsStore.setCurrentRequestLinkMode(false);
2122
}
22-
SettingsStore.setCurrentRequestLinkMode(false);
2323
}, [open]);
2424

2525
const componentView = useMemo(() => {
@@ -45,6 +45,9 @@ export default function Modal() {
4545
<RNModal
4646
backdropOpacity={0.6}
4747
hideModalContentWhileAnimating
48+
useNativeDriver
49+
statusBarTranslucent
50+
propagateSwipe
4851
onBackdropPress={onClose}
4952
onModalHide={onClose}
5053
style={styles.modal}

wallets/rn_cli_wallet/src/components/Modal/ModalHeader.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
import {Image, StyleSheet, Text, View} from 'react-native';
2+
import {useSnapshot} from 'valtio';
23
import {SignClientTypes, Verify} from '@walletconnect/types';
34

45
import {useTheme} from '@/hooks/useTheme';
56
import VerifiedDomain from '@/assets/VerifiedDomain.png';
67
import VerifyTag from '@/components/VerifyTag';
8+
import SettingsStore from '@/store/SettingsStore';
79

810
interface ModalHeaderProps {
911
metadata?: SignClientTypes.Metadata;
1012
intention?: string;
1113
verifyContext?: Verify.Context;
12-
isLinkMode?: boolean;
1314
}
1415

1516
export function ModalHeader({
1617
metadata,
1718
intention,
1819
verifyContext,
19-
isLinkMode,
2020
}: ModalHeaderProps) {
2121
const Theme = useTheme();
22+
const {isCurrentRequestLinkMode} = useSnapshot(SettingsStore.state);
2223
const color = Theme['fg-100'];
2324
const validation = verifyContext?.verified.validation;
2425
const isScam = verifyContext?.verified.isScam;
2526

2627
return (
2728
<View style={styles.container}>
28-
{isLinkMode && (
29+
{isCurrentRequestLinkMode && (
2930
<View
3031
style={[
3132
styles.linkModeContainer,

wallets/rn_cli_wallet/src/modals/RequestModal.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,14 @@ export function RequestModal({
2828
intention,
2929
}: RequestModalProps) {
3030
const Theme = useTheme();
31-
const {currentRequestVerifyContext, isCurrentRequestLinkMode} = useSnapshot(
32-
SettingsStore.state,
33-
);
31+
const {currentRequestVerifyContext} = useSnapshot(SettingsStore.state);
3432

3533
return (
3634
<View style={[styles.container, {backgroundColor: Theme['bg-125']}]}>
3735
<ModalHeader
3836
metadata={metadata}
3937
intention={intention}
4038
verifyContext={currentRequestVerifyContext}
41-
isLinkMode={isCurrentRequestLinkMode}
4239
/>
4340
{children}
4441
<ModalFooter

wallets/rn_cli_wallet/src/utils/WalletConnectUtil.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function createWeb3Wallet(relayerRegionURL: string) {
1919
icons: ['https://avatars.githubusercontent.com/u/37784886'],
2020
redirect: {
2121
native: 'rn-web3wallet://',
22-
universal: 'https://dev.lab.web3modal.com/walletkit_rn',
22+
universal: 'https://lab.web3modal.com/walletkit_rn',
2323
linkMode: true,
2424
},
2525
},

0 commit comments

Comments
 (0)