mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
UX: Multichain: Make imports consistent (#19793)
This commit is contained in:
parent
c8f26d8c24
commit
fd20f48e2c
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import testData from '../../../../.storybook/test-data';
|
||||
import { AccountDetails } from './account-details';
|
||||
import { AccountDetails } from '.';
|
||||
|
||||
const [, address] = Object.keys(testData.metamask.identities);
|
||||
|
||||
|
@ -8,7 +8,7 @@ import {
|
||||
BackgroundColor,
|
||||
Color,
|
||||
} from '../../../helpers/constants/design-system';
|
||||
import { ConnectedSiteMenu } from './connected-site-menu';
|
||||
import { ConnectedSiteMenu } from '.';
|
||||
|
||||
export default {
|
||||
title: 'Components/Multichain/ConnectedSiteMenu',
|
||||
|
@ -10,7 +10,7 @@ import {
|
||||
BackgroundColor,
|
||||
Color,
|
||||
} from '../../../helpers/constants/design-system';
|
||||
import { ConnectedSiteMenu } from './connected-site-menu';
|
||||
import { ConnectedSiteMenu } from '.';
|
||||
|
||||
describe('Connected Site Menu', () => {
|
||||
const selectedAddress = '0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { DetectedTokensBanner } from './detected-token-banner';
|
||||
import { DetectedTokensBanner } from '.';
|
||||
|
||||
export default {
|
||||
title: 'Components/Multichain/DetectedTokensBanner',
|
||||
|
@ -3,7 +3,7 @@ import { renderWithProvider, screen, fireEvent } from '../../../../test/jest';
|
||||
import configureStore from '../../../store/store';
|
||||
import testData from '../../../../.storybook/test-data';
|
||||
|
||||
import { DetectedTokensBanner } from './detected-token-banner';
|
||||
import { DetectedTokensBanner } from '.';
|
||||
|
||||
describe('DetectedTokensBanner', () => {
|
||||
let setShowDetectedTokensSpy;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { ImportTokenLink } from './import-token-link';
|
||||
import { ImportTokenLink } from '.';
|
||||
|
||||
export default {
|
||||
title: 'Components/Multichain/ImportTokenLink',
|
||||
|
@ -3,7 +3,7 @@ import configureMockStore from 'redux-mock-store';
|
||||
import { fireEvent, screen } from '@testing-library/react';
|
||||
import { detectNewTokens } from '../../../store/actions';
|
||||
import { renderWithProvider } from '../../../../test/lib/render-helpers';
|
||||
import { ImportTokenLink } from './import-token-link';
|
||||
import { ImportTokenLink } from '.';
|
||||
|
||||
const mockPushHistory = jest.fn();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { NftItem } from './nft-item';
|
||||
import { NftItem } from '.';
|
||||
|
||||
export default {
|
||||
title: 'Components/Multichain/NftItem',
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { ProductTour } from './product-tour-popover';
|
||||
import { ProductTour } from '.';
|
||||
|
||||
export default {
|
||||
title: 'Components/Multichain/ProductTour',
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
|
||||
import { ProductTour } from './product-tour-popover';
|
||||
import { ProductTour } from '.';
|
||||
|
||||
describe('DetectedTokensBanner', () => {
|
||||
const props = {
|
||||
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { Provider } from 'react-redux';
|
||||
import testData from '../../../../.storybook/test-data';
|
||||
import configureStore from '../../../store/store';
|
||||
import { TokenListItem } from './token-list-item';
|
||||
import { TokenListItem } from '.';
|
||||
|
||||
export default {
|
||||
title: 'Components/Multichain/MultichainTokenListItem',
|
||||
|
@ -3,7 +3,7 @@ import configureMockStore from 'redux-mock-store';
|
||||
|
||||
import { fireEvent } from '@testing-library/react';
|
||||
import { renderWithProvider } from '../../../../test/lib/render-helpers';
|
||||
import { TokenListItem } from './token-list-item';
|
||||
import { TokenListItem } from '.';
|
||||
|
||||
const state = {
|
||||
metamask: {
|
||||
|
Loading…
Reference in New Issue
Block a user