Skip to content

Commit 3828a2c

Browse files
committed
just remove it from the dialog via useTurnkeyEnabled override
1 parent 7968f83 commit 3828a2c

File tree

4 files changed

+39
-36
lines changed

4 files changed

+39
-36
lines changed

src/constants/wallets.ts

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ import { type WalletType as CosmosWalletType } from 'graz';
33
import { type EIP6963ProviderInfo } from 'mipd';
44

55
import { STRING_KEYS } from '@/constants/localization';
6+
import { LoginMethod } from '@/types/turnkey';
67

7-
// import { LoginMethod } from '@/types/turnkey';
88
import {
9-
CoinbaseIcon, // EmailIcon,
9+
CoinbaseIcon,
10+
EmailIcon,
1011
GenericWalletIcon,
1112
KeplrIcon,
1213
MetaMaskIcon,
1314
OkxWalletIcon,
14-
PhantomIcon, // PrivyIcon,
15+
PhantomIcon,
16+
PrivyIcon,
1517
WalletConnectIcon,
1618
} from '@/icons';
1719

@@ -59,10 +61,10 @@ export enum WalletType {
5961
WalletConnect2 = 'WALLETCONNECT_2',
6062
TestWallet = 'TEST_WALLET',
6163
OtherWallet = 'OTHER_WALLET',
62-
// Privy = 'PRIVY',
64+
Privy = 'PRIVY',
6365
Phantom = 'PHANTOM',
6466
MetaMask = 'METAMASK',
65-
// Turnkey = 'TURNKEY',
67+
Turnkey = 'TURNKEY',
6668
}
6769

6870
export enum ConnectorType {
@@ -73,9 +75,9 @@ export enum ConnectorType {
7375
WalletConnect = 'walletConnect',
7476
Cosmos = 'cosmos',
7577
Test = 'test',
76-
// Privy = 'privy',
78+
Privy = 'privy',
7779
PhantomSolana = 'phantomSolana',
78-
// Turnkey = 'turnkey',
80+
Turnkey = 'turnkey',
7981
}
8082

8183
export enum WalletNetworkType {
@@ -93,18 +95,18 @@ export type WalletInfo =
9395
connectorType:
9496
| ConnectorType.Coinbase
9597
| ConnectorType.WalletConnect
96-
| ConnectorType.PhantomSolana;
97-
// | ConnectorType.Privy;
98+
| ConnectorType.PhantomSolana
99+
| ConnectorType.Privy;
98100
name: WalletType;
99101
}
100-
// | {
101-
// connectorType: ConnectorType.Turnkey;
102-
// name: WalletType.Turnkey;
103-
// userEmail?: string;
104-
// providerName?: string;
105-
// loginMethod: LoginMethod;
106-
// requiresAddressUpload?: boolean;
107-
// }
102+
| {
103+
connectorType: ConnectorType.Turnkey;
104+
name: WalletType.Turnkey;
105+
userEmail?: string;
106+
providerName?: string;
107+
loginMethod: LoginMethod;
108+
requiresAddressUpload?: boolean;
109+
}
108110
| {
109111
connectorType: ConnectorType.Cosmos;
110112
name: CosmosWalletType;
@@ -144,11 +146,11 @@ export const wallets = {
144146
stringKey: STRING_KEYS.TEST_WALLET,
145147
icon: GenericWalletIcon,
146148
},
147-
// [WalletType.Privy]: {
148-
// type: WalletType.Privy,
149-
// stringKey: STRING_KEYS.PRIVY,
150-
// icon: PrivyIcon,
151-
// },
149+
[WalletType.Privy]: {
150+
type: WalletType.Privy,
151+
stringKey: STRING_KEYS.PRIVY,
152+
icon: PrivyIcon,
153+
},
152154
[WalletType.Phantom]: {
153155
type: WalletType.Phantom,
154156
stringKey: STRING_KEYS.PHANTOM_SOL,
@@ -164,11 +166,11 @@ export const wallets = {
164166
stringKey: STRING_KEYS.METAMASK,
165167
icon: MetaMaskIcon,
166168
},
167-
// [WalletType.Turnkey]: {
168-
// type: WalletType.Turnkey,
169-
// stringKey: STRING_KEYS.EMAIL_OR_SOCIAL,
170-
// icon: EmailIcon,
171-
// },
169+
[WalletType.Turnkey]: {
170+
type: WalletType.Turnkey,
171+
stringKey: STRING_KEYS.EMAIL_OR_SOCIAL,
172+
icon: EmailIcon,
173+
},
172174
} satisfies Record<WalletInfo['name'], WalletConfig>;
173175

174176
/**

src/hooks/useEnableTurnkey.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { StatsigFlags } from '@/constants/statsig';
1+
// import { StatsigFlags } from '@/constants/statsig';
22

3-
import { testFlags } from '@/lib/testFlags';
3+
// import { testFlags } from '@/lib/testFlags';
44

5-
import { useStatsigGateValue } from './useStatsig';
5+
// import { useStatsigGateValue } from './useStatsig';
66

77
export const useEnableTurnkey = () => {
8-
const forcedTurnkey = testFlags.enableTurnkey;
9-
const turnkeyFF = useStatsigGateValue(StatsigFlags.ffTurnkeyWeb);
8+
// const forcedTurnkey = testFlags.enableTurnkey;
9+
// const turnkeyFF = useStatsigGateValue(StatsigFlags.ffTurnkeyWeb);
1010

11-
return forcedTurnkey || turnkeyFF;
11+
return false; // forcedTurnkey || turnkeyFF;
1212
};

src/views/dialogs/OnboardingDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export const OnboardingDialog = ({
259259
/>
260260
);
261261
};
262-
const $Content = tw.div`flexColumn gap-1`;
262+
const $Content = tw.div`flexColumn mt-2 gap-1`;
263263

264264
const $Dialog = styled(Dialog)<{ width?: string }>`
265265
@media ${breakpoints.notMobile} {

src/views/dialogs/OnboardingDialog/ChooseWallet.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { WalletIcon } from '@/components/WalletIcon';
2525

2626
export const ChooseWallet = ({
2727
onChooseWallet,
28+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2829
onSignInWithSocials,
2930
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3031
onSignInWithPasskey,
@@ -49,7 +50,7 @@ export const ChooseWallet = ({
4950
<HorizontalSeparatorFiller />
5051
</div>
5152

52-
{/* <$OtherOptionButton
53+
<$OtherOptionButton
5354
type={ButtonType.Button}
5455
action={ButtonAction.Base}
5556
size={ButtonSize.BasePlus}
@@ -61,7 +62,7 @@ export const ChooseWallet = ({
6162
</div>
6263

6364
<Icon iconName={IconName.ChevronRight} />
64-
</$OtherOptionButton> */}
65+
</$OtherOptionButton>
6566

6667
<$OtherOptionButton
6768
type={ButtonType.Button}

0 commit comments

Comments
 (0)