mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
d1cea85f33
* Rename `provider` to `providerConfig` The network controller `provider` state has been renamed to `providerConfig`. This better reflects what this state is, and makes this controller more closely aligned with the core network controller. All references to the provider configuration have been updated to prefer `providerConfig` over `provider`, to make the distinction clear between a provider and provider config. Closes #18902 * Add migration
58 lines
1.3 KiB
JavaScript
58 lines
1.3 KiB
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import configureStore from '../../../store/store';
|
|
import testData from '../../../../.storybook/test-data';
|
|
import ConfirmAddInstitutionalFeature from '.';
|
|
|
|
const customData = {
|
|
...testData,
|
|
metamask: {
|
|
providerConfig: {
|
|
type: 'test',
|
|
},
|
|
institutionalFeatures: {
|
|
complianceProjectId: '',
|
|
connectRequests: [
|
|
{
|
|
labels: [
|
|
{
|
|
key: 'service',
|
|
value: 'test',
|
|
},
|
|
],
|
|
origin: 'origin',
|
|
token: {
|
|
projectName: 'projectName',
|
|
projectId: 'projectId',
|
|
clientId: 'clientId',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
preferences: {
|
|
useNativeCurrencyAsPrimaryCurrency: true,
|
|
},
|
|
},
|
|
};
|
|
|
|
const store = configureStore(customData);
|
|
|
|
export default {
|
|
title: 'Pages/Institutional/ConfirmAddInstitutionalFeature',
|
|
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
|
|
component: ConfirmAddInstitutionalFeature,
|
|
args: {
|
|
history: {
|
|
push: () => {
|
|
/**/
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => (
|
|
<ConfirmAddInstitutionalFeature {...args} />
|
|
);
|
|
|
|
DefaultStory.storyName = 'ConfirmAddInstitutionalFeature';
|