Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yushih committed Dec 19, 2024
1 parent 210bc5c commit 5ecb941
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import { CREATE_WALLET_SETPS, markDialogAsShown } from './steps';
import SaveRecoveryPhraseStep from './SaveRecoveryPhraseStep';
import VerifyRecoveryPhraseStep from './VerifyRecoveryPhraseStep';
import AddWalletDetailsStep from './AddWalletDetailsStep';
import { networks } from '../../../api/ada/lib/storage/database/prepackaged/networks';
import CreateWalletPageHeader from './CreateWalletPageHeader';
import environment from '../../../environment';
import { ROUTES } from '../../../routes-config';
import type { NetworkRow } from '../../../api/ada/lib/storage/database/primitives/tables';
import { ampli } from '../../../../ampli/index';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @flow
import environment from '../../../environment';

export const CREATE_WALLET_SETPS = Object.freeze({
LEARN_ABOUT_RECOVERY_PHRASE: 'LEARN_ABOUT_RECOVER_PHRASE',
SAVE_RECOVERY_PHRASE: 'SAVE_RECOVERY_PHRASE',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @flow
import environment from '../../../environment';

export const RESTORE_WALLET_STEPS = Object.freeze({
SELECT_WALLET_TYPE: 'SELECT_WALLET_TYPE',
ENTER_RECOVERY_PHRASE: 'ENTER_RECOVERY_PHRASE',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { defineMessages, intlShape } from 'react-intl';
import ReactToolboxMobxForm from '../../../utils/ReactToolboxMobxForm';
import DialogCloseButton from '../../widgets/DialogCloseButton';
import Dialog from '../../widgets/Dialog';
import { isValidWalletPassword, isValidRepeatPassword } from '../../../utils/validations';
import globalMessages from '../../../i18n/global-messages';
import type { $npm$ReactIntl$IntlFormat, $npm$ReactIntl$MessageDescriptor } from 'react-intl';
import { MenuItem, Box } from '@mui/material';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @flow
import type { Node } from 'react';
import type { $npm$ReactIntl$IntlFormat } from 'react-intl';
import type { StoresAndActionsProps } from '../../../types/injectedProps.types';
import { Component } from 'react';
import { action, observable } from 'mobx';
import { observer } from 'mobx-react';
import SwitchNetworkDialog from '../../../components/wallet/settings/SwitchNetworkDialog';
import { networks } from '../../../api/ada/lib/storage/database/prepackaged/networks';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import { action, observable, computed, runInAction } from 'mobx';
import { observable, computed, runInAction } from 'mobx';
import BigNumber from 'bignumber.js';
import BaseProfileStore from '../base/BaseProfileStore';
import Request from '../lib/LocalizedRequest';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function getWalletsState(publicDeriverId: ?number, targetNetworkId:
const adaApi = new AdaApi();
const clonedWallet = await adaApi.cloneWallet(db, value[0], network);
publicDeriversOfNetwork.push(clonedWallet);
syncWallet(clonedWallet, 'cloned wallet').catch(error => console.error);
syncWallet(clonedWallet, 'cloned wallet').catch(console.error);
}
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { getDb } from './databaseManager';

export { getDb };
// eslint-disable-next-line import/no-cycle
export { refreshingWalletIdSet, syncWallet } from './refreshScheduler';

export async function init(): Promise<void> {
Expand Down

0 comments on commit 5ecb941

Please sign in to comment.