Skip to content

Commit

Permalink
[WALL] Sergei / trying to fix package-lock and get back Step types (d…
Browse files Browse the repository at this point in the history
…eriv-com#11312)

* Revert "feat: update package-lock.json"

This reverts commit dba7836.

* feat: trying to fix package-lock.json

* feat: add Step type instead of any
  • Loading branch information
sergei-deriv authored Dec 12, 2023
1 parent 3c75a81 commit b35b1f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { Step } from '@deriv/react-joyride';
import { WalletText } from '../Base';
import './WalletTourGuide.scss';

Expand All @@ -8,8 +9,7 @@ const getDesktopSteps = (
hasDerivAppsTradingAccount: boolean,
isAllWalletsAlreadyAdded: boolean,
walletNumber = 1
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): any[] => [
): Step[] => [
// Wallet header
{
content: (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { Step } from '@deriv/react-joyride';
import { WalletText } from '../Base';

const getMobileSteps = (
Expand All @@ -7,8 +8,7 @@ const getMobileSteps = (
hasDerivAppsTradingAccount: boolean,
isAllWalletsAlreadyAdded: boolean,
walletNumber = 1
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): any[] => [
): Step[] => [
// Wallet card
{
content: (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { TooltipRenderProps } from '@deriv/react-joyride';
import { Step, TooltipRenderProps } from '@deriv/react-joyride';
import CloseIcon from '../../public/images/close-icon.svg';
import { THooks } from '../../types';
import { WalletButton } from '../Base';
Expand All @@ -17,8 +17,7 @@ export const tourStepConfig = (
hasDerivAppsTradingAccount: boolean,
isAllWalletsAlreadyAdded: boolean,
walletIndex = 1
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): any[] =>
): Step[] =>
isMobile
? getMobileSteps(isDemoWallet, hasMT5Account, hasDerivAppsTradingAccount, isAllWalletsAlreadyAdded, walletIndex)
: getDesktopSteps(
Expand Down

0 comments on commit b35b1f7

Please sign in to comment.