From f76246391d6270847aa6757eac4417c5e4a268a9 Mon Sep 17 00:00:00 2001
From: Aizad Ridzo <103104395+aizad-deriv@users.noreply.github.com>
Date: Thu, 6 Jun 2024 17:01:33 +0800
Subject: [PATCH] [WALL] Aizad/Fix Import Issues in Wallets (#15495)
* fix: remove unused imports and add eslint ignore to useeffect
* chore: replace modal.isOpen with modal
* chore: update useEffect dependencies
---
.../docs/examples/FlowProvider/AccountFlow/AccountFlow.tsx | 4 +---
.../src/components/WalletTourGuide/WalletTourGuide.tsx | 1 +
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/packages/wallets/docs/examples/FlowProvider/AccountFlow/AccountFlow.tsx b/packages/wallets/docs/examples/FlowProvider/AccountFlow/AccountFlow.tsx
index 03fd8a4e939e..4aa6d7468358 100644
--- a/packages/wallets/docs/examples/FlowProvider/AccountFlow/AccountFlow.tsx
+++ b/packages/wallets/docs/examples/FlowProvider/AccountFlow/AccountFlow.tsx
@@ -2,7 +2,6 @@ import React from 'react';
import { ModalStepWrapper } from '../../../../src/components/Base/ModalStepWrapper';
import { FlowProvider, TFlowProviderContext, useFlow } from '../../../../src/components/FlowProvider';
import { useModal } from '../../../../src/components/ModalProvider';
-import { MT5AccountType } from '../../../../src/features/cfd/screens/MT5AccountType';
import VerificationFlow from './VerificationFlow';
const PasswordScreen = () => {
@@ -62,7 +61,6 @@ const screens = {
bScreen: ,
JurisdictionScreen: ,
passwordScreen: ,
- selectAccountTypeScreen: marketType} selectedMarketType='all' />,
};
const AccountFlow = () => {
@@ -91,7 +89,7 @@ const AccountFlow = () => {
testb: '',
}}
screens={screens}
- screensOrder={['selectAccountTypeScreen', 'JurisdictionScreen', 'passwordScreen', 'aScreen', 'bScreen']}
+ screensOrder={['JurisdictionScreen', 'passwordScreen', 'aScreen', 'bScreen']}
>
{context => {
return (
diff --git a/packages/wallets/src/components/WalletTourGuide/WalletTourGuide.tsx b/packages/wallets/src/components/WalletTourGuide/WalletTourGuide.tsx
index 8ca706338440..8edeac311be8 100644
--- a/packages/wallets/src/components/WalletTourGuide/WalletTourGuide.tsx
+++ b/packages/wallets/src/components/WalletTourGuide/WalletTourGuide.tsx
@@ -48,6 +48,7 @@ const WalletTourGuide = () => {
if (needToStart && modal.isOpen) {
modal.hide();
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [needToStart, modal.isOpen]);
useEffect(() => {