mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
b982bea130
* adds component and test * adds correct icon and story file * lint * typo fix
55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import configureStore from '../../../store/store';
|
|
import testData from '../../../../.storybook/test-data';
|
|
import WrongNetworkNotification from '.';
|
|
|
|
const customData = {
|
|
...testData,
|
|
metamask: {
|
|
...testData.metamask,
|
|
providerConfig: {
|
|
type: 'test',
|
|
chainId: '3',
|
|
},
|
|
cachedBalances: {
|
|
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';
|