Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho112 committed Jan 17, 2024
1 parent e883ba1 commit 5238392
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 61 deletions.
116 changes: 58 additions & 58 deletions packages/frontend/src/components/Routing.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ConnectedRouter, getRouter } from 'connected-react-router';
import isString from 'lodash.isstring';
import { parseSeedPhrase } from 'near-seed-phrase';
// import { parseSeedPhrase } from 'near-seed-phrase';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import ReactDOMServer from 'react-dom/server';
Expand All @@ -9,14 +9,14 @@ import { connect } from 'react-redux';
import { Redirect, Switch } from 'react-router-dom';
import styled, { ThemeProvider } from 'styled-components';

import { SHOW_MIGRATION_BANNER, WEB3AUTH, WEP_DISABLE_ACCOUNT_CREATION, WEP_PHASE_ONE } from '../../../../features';
import { WEB3AUTH, WEP_PHASE_ONE } from '../../../../features';
import favicon from '../../src/images/mynearwallet-cropped.svg';
import TwoFactorVerifyModal from '../components/accounts/two_factor/TwoFactorVerifyModal';
import {
IS_MAINNET,
PUBLIC_URL,
SHOW_PRERELEASE_WARNING,
DISABLE_CREATE_ACCOUNT,
// DISABLE_CREATE_ACCOUNT,
} from '../config';
import { isWhitelabel } from '../config/whitelabel';
import { Mixpanel } from '../mixpanel/index';
Expand All @@ -25,65 +25,17 @@ import { handleClearAlert } from '../redux/reducers/status';
import { selectAccountSlice } from '../redux/slices/account';
import { actions as flowLimitationActions } from '../redux/slices/flowLimitation';
import { actions as tokenFiatValueActions } from '../redux/slices/tokenFiatValues';
import { CreateImplicitAccountWrapper } from '../routes/CreateImplicitAccountWrapper';
import { ImportAccountWithLinkWrapper } from '../routes/ImportAccountWithLinkWrapper';
import { LoginWrapper } from '../routes/LoginWrapper';
import { SetupLedgerNewAccountWrapper } from '../routes/SetupLedgerNewAccountWrapper';
import { SetupPassphraseNewAccountWrapper } from '../routes/SetupPassphraseNewAccountWrapper';
import { SetupRecoveryImplicitAccountWrapper } from '../routes/SetupRecoveryImplicitAccountWrapper';
import { SignWrapper } from '../routes/SignWrapper';
// import { CreateImplicitAccountWrapper } from '../routes/CreateImplicitAccountWrapper';
// import { ImportAccountWithLinkWrapper } from '../routes/ImportAccountWithLinkWrapper';
// import { LoginWrapper } from '../routes/LoginWrapper';
// import { SetupLedgerNewAccountWrapper } from '../routes/SetupLedgerNewAccountWrapper';
// import { SetupPassphraseNewAccountWrapper } from '../routes/SetupPassphraseNewAccountWrapper';
// import { SetupRecoveryImplicitAccountWrapper } from '../routes/SetupRecoveryImplicitAccountWrapper';
// import { SignWrapper } from '../routes/SignWrapper';
import { TransferWizardWrapper } from '../routes/TransferWizardWrapper';
import { VerifyOwnerWrapper } from '../routes/VerifyOwnerWrapper';
import translations_en from '../translations/en.global.json';
import translations_it from '../translations/it.global.json';
import AccessKeysWrapper from './access-keys/v2/AccessKeysWrapper';
import { AutoImportWrapper } from './accounts/auto_import/AutoImportWrapper';
import BatchImportAccounts from './accounts/batch_import_accounts';
import BatchLedgerExport from './accounts/batch_ledger_export';
import { ExistingAccountWrapper } from './accounts/create/existing_account/ExistingAccountWrapper';
import { InitialDepositWrapper } from './accounts/create/initial_deposit/InitialDepositWrapper';
import { CreateAccountLanding } from './accounts/create/landing/CreateAccountLanding';
import { VerifyAccountWrapper } from './accounts/create/verify_account/VerifyAccountWrapper';
import { CreateAccountWithRouter } from './accounts/CreateAccount';
import LedgerConfirmActionModal from './accounts/ledger/LedgerConfirmActionModal';
import LedgerConnectModal from './accounts/ledger/LedgerConnectModal/LedgerConnectModalWrapper';
import { SetupLedgerWithRouter } from './accounts/ledger/SetupLedger';
import { SetupLedgerSuccessWithRouter } from './accounts/ledger/SetupLedgerSuccess';
import { SignInLedgerWrapper } from './accounts/ledger/SignInLedgerWrapper';
import { LinkdropLandingWithRouter } from './accounts/LinkdropLanding';
import { RecoverAccountSeedPhraseWithRouter } from './accounts/RecoverAccountSeedPhrase';
import { RecoverAccountWrapper } from './accounts/RecoverAccountWrapper';
import { SetupRecoveryMethodWithRouter } from './accounts/recovery_setup/SetupRecoveryMethod';
import { SetupImplicitWithRouter } from './accounts/SetupImplicit';
import { SetupSeedPhraseWithRouter } from './accounts/SetupSeedPhrase';
import { DisableTwoFactor } from './accounts/two_factor/DisableTwoFactor';
import { EnableTwoFactor } from './accounts/two_factor/EnableTwoFactor';
import { BuyNear } from './buy/BuyNear';
import Footer from './common/Footer';
import GlobalAlert from './common/GlobalAlert';
import MigrationBanner from './common/MigrationBanner';
import NetworkBanner from './common/NetworkBanner';
import PrivateRoute from './common/routing/PrivateRoute';
import PublicRoute from './common/routing/PublicRoute';
import Route from './common/routing/Route';
import TwoFactorDisableBanner from './common/TwoFactorDisableBanner';
import { ExploreContainer } from './explore/ExploreContainer';
import GlobalStyle from './GlobalStyle';
import { GuestLanding } from './landing/GuestLanding';
import { LoginCliLoginSuccess } from './login/LoginCliLoginSuccess';
import NavigationWrapper from './navigation/NavigationWrapper';
import { NFTDetailWrapper } from './nft/NFTDetailWrapper';
import { PageNotFound } from './page-not-found/PageNotFound';
import Privacy from './privacy/Privacy';
import { Profile } from './profile/Profile';
import { ReceiveContainerWrapper } from './receive-money/ReceiveContainerWrapper';
import { SendContainerWrapper } from './send/SendContainerWrapper';
import { StakingContainer } from './staking/StakingContainer';
import Swap from './swap/Swap';
import Terms from './terms/Terms';
import { initAnalytics } from './wallet-migration/metrics';
import { getMigrationStep } from './wallet-migration/utils';
import WalletMigration, { WALLET_MIGRATION_VIEWS } from './wallet-migration/WalletMigration';
import translations_kr from '../translations/kr.global.json';
import translations_pt from '../translations/pt.global.json';
import translations_ru from '../translations/ru.global.json';
Expand All @@ -94,6 +46,15 @@ import translations_zh_hans from '../translations/zh-hans.global.json';
import translations_zh_hant from '../translations/zh-hant.global.json';
import classNames from '../utils/classNames';
import getBrowserLocale from '../utils/getBrowserLocale';
// import AccessKeysWrapper from './access-keys/v2/AccessKeysWrapper';
// import { AutoImportWrapper } from './accounts/auto_import/AutoImportWrapper';
// import BatchImportAccounts from './accounts/batch_import_accounts';
// import BatchLedgerExport from './accounts/batch_ledger_export';
// import { ExistingAccountWrapper } from './accounts/create/existing_account/ExistingAccountWrapper';
// import { InitialDepositWrapper } from './accounts/create/initial_deposit/InitialDepositWrapper';
// import { CreateAccountLanding } from './accounts/create/landing/CreateAccountLanding';
// import { VerifyAccountWrapper } from './accounts/create/verify_account/VerifyAccountWrapper';
// import { CreateAccountWithRouter } from './accounts/CreateAccount';
import { reportUiActiveMixpanelThrottled } from '../utils/reportUiActiveMixpanelThrottled';
import ScrollToTop from '../utils/ScrollToTop';
import {
Expand All @@ -102,6 +63,45 @@ import {
WALLET_SIGN_URL,
WALLET_SEND_MONEY_URL,
} from '../utils/wallet';
import LedgerConfirmActionModal from './accounts/ledger/LedgerConfirmActionModal';
import LedgerConnectModal from './accounts/ledger/LedgerConnectModal/LedgerConnectModalWrapper';
// import { SetupLedgerWithRouter } from './accounts/ledger/SetupLedger';
// import { SetupLedgerSuccessWithRouter } from './accounts/ledger/SetupLedgerSuccess';
// import { SignInLedgerWrapper } from './accounts/ledger/SignInLedgerWrapper';
// import { LinkdropLandingWithRouter } from './accounts/LinkdropLanding';
// import { RecoverAccountSeedPhraseWithRouter } from './accounts/RecoverAccountSeedPhrase';
// import { RecoverAccountWrapper } from './accounts/RecoverAccountWrapper';
// import { SetupRecoveryMethodWithRouter } from './accounts/recovery_setup/SetupRecoveryMethod';
// import { SetupImplicitWithRouter } from './accounts/SetupImplicit';
// import { SetupSeedPhraseWithRouter } from './accounts/SetupSeedPhrase';
import { DisableTwoFactor } from './accounts/two_factor/DisableTwoFactor';
// import { EnableTwoFactor } from './accounts/two_factor/EnableTwoFactor';
// import { BuyNear } from './buy/BuyNear';
import Footer from './common/Footer';
import GlobalAlert from './common/GlobalAlert';
import MigrationBanner from './common/MigrationBanner';
import NetworkBanner from './common/NetworkBanner';
import PrivateRoute from './common/routing/PrivateRoute';
// import PublicRoute from './common/routing/PublicRoute';
import Route from './common/routing/Route';
// import TwoFactorDisableBanner from './common/TwoFactorDisableBanner';
// import { ExploreContainer } from './explore/ExploreContainer';
import GlobalStyle from './GlobalStyle';
import { GuestLanding } from './landing/GuestLanding';
// import { LoginCliLoginSuccess } from './login/LoginCliLoginSuccess';
import NavigationWrapper from './navigation/NavigationWrapper';
// import { NFTDetailWrapper } from './nft/NFTDetailWrapper';
import { PageNotFound } from './page-not-found/PageNotFound';
import Privacy from './privacy/Privacy';
// import { Profile } from './profile/Profile';
// import { ReceiveContainerWrapper } from './receive-money/ReceiveContainerWrapper';
// import { SendContainerWrapper } from './send/SendContainerWrapper';
// import { StakingContainer } from './staking/StakingContainer';
// import Swap from './swap/Swap';
import Terms from './terms/Terms';
import { initAnalytics } from './wallet-migration/metrics';
import { getMigrationStep } from './wallet-migration/utils';
import WalletMigration, { WALLET_MIGRATION_VIEWS } from './wallet-migration/WalletMigration';
import '../index.css';

const { fetchTokenFiatValues, getTokenWhiteList } = tokenFiatValueActions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { Component } from 'react';
import styled from 'styled-components';

import { isWhitelabel } from '../../config/whitelabel';
import DeprecatedLogo from './DeprecatedLogo';
import DesktopMenu from './DesktopMenu';
import Logo from './Logo';
import NavLinks from './NavLinks';
import { isWhitelabel } from '../../config/whitelabel';

const Container = styled.div`
display: none;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/navigation/DesktopMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React from 'react';
import { Translate } from 'react-localize-redux';
import styled from 'styled-components';

import AccountSelector from '../accounts/account_selector/AccountSelector';
import AccessAccountBtn from './AccessAccountBtn';
import CreateAccountBtn from './CreateAccountBtn';
import AccountSelector from '../accounts/account_selector/AccountSelector';

const Menu = styled.div`
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { useCallback } from 'react';
import { useDispatch, useSelector } from 'react-redux';

import Navigation from './Navigation';
import { switchAccount, getAccountBalance } from '../../redux/actions/account';
import { selectAccountSlice } from '../../redux/slices/account';
import { selectAvailableAccounts } from '../../redux/slices/availableAccounts';
import { selectFlowLimitationMainMenu, selectFlowLimitationSubMenu } from '../../redux/slices/flowLimitation';
import Navigation from './Navigation';

export default ({ history }) => {
const dispatch = useDispatch();
Expand Down

0 comments on commit 5238392

Please sign in to comment.