mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
43 lines
1.0 KiB
JavaScript
43 lines
1.0 KiB
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import configureStore from '../../../store/store';
|
|
import testData from '../../../../.storybook/test-data';
|
|
import ConfirmAddCustodianToken from '.';
|
|
|
|
const customData = {
|
|
...testData,
|
|
metamask: {
|
|
...testData.metamask,
|
|
institutionalFeatures: {
|
|
connectRequests: [
|
|
{
|
|
labels: [
|
|
{
|
|
key: 'service',
|
|
value: 'test',
|
|
},
|
|
],
|
|
origin: 'origin',
|
|
token: 'awesomeTestToken',
|
|
feature: 'custodian',
|
|
service: 'Saturn',
|
|
apiUrl: 'https://www.apiurl.net/v1',
|
|
chainId: 1,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
};
|
|
|
|
const store = configureStore(customData);
|
|
|
|
export default {
|
|
title: 'Pages/Institutional/ConfirmAddCustodianToken',
|
|
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
|
|
component: ConfirmAddCustodianToken,
|
|
};
|
|
|
|
export const DefaultStory = () => <ConfirmAddCustodianToken />;
|
|
|
|
DefaultStory.storyName = 'ConfirmAddCustodianToken';
|