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