mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
56 lines
1.4 KiB
JavaScript
56 lines
1.4 KiB
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import { toHex } from '@metamask/controller-utils';
|
|
import configureStore from '../../../store/store';
|
|
import testData from '../../../../.storybook/test-data';
|
|
import WrongNetworkNotification from '.';
|
|
|
|
const customData = {
|
|
...testData,
|
|
metamask: {
|
|
...testData.metamask,
|
|
providerConfig: {
|
|
type: 'test',
|
|
chainId: toHex(3),
|
|
},
|
|
cachedBalances: {
|
|
[toHex(3)]: {
|
|
'0x5Ab19e7091dD208F352F8E727B6DCC6F8aBB6275': '0x0',
|
|
},
|
|
},
|
|
selectedAddress: '0x5Ab19e7091dD208F352F8E727B6DCC6F8aBB6275',
|
|
custodianSupportedChains: {
|
|
'0x5Ab19e7091dD208F352F8E727B6DCC6F8aBB6275': {
|
|
supportedChains: ['1', '2'],
|
|
custodianName: 'saturn',
|
|
},
|
|
},
|
|
identities: {
|
|
'0x5Ab19e7091dD208F352F8E727B6DCC6F8aBB6275': {
|
|
name: 'Custody Account A',
|
|
address: '0x5Ab19e7091dD208F352F8E727B6DCC6F8aBB6275',
|
|
},
|
|
},
|
|
keyrings: [
|
|
{
|
|
type: 'Custody',
|
|
accounts: ['0x5Ab19e7091dD208F352F8E727B6DCC6F8aBB6275'],
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
const store = configureStore(customData);
|
|
|
|
export default {
|
|
title: 'Components/Institutional/WrongNetworkNotification',
|
|
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
|
|
component: WrongNetworkNotification,
|
|
};
|
|
|
|
export const DefaultStory = () => {
|
|
return <WrongNetworkNotification />;
|
|
};
|
|
|
|
DefaultStory.storyName = 'WrongNetworkNotification';
|