mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
8fbd1e30e8
* MMI-2657 adds the compliance settings screen * MMI-2657 adds stories file * wip compliance feature page * adds stories and fixes imports * adds storybook and tests * lint fix
36 lines
898 B
JavaScript
36 lines
898 B
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import { action } from '@storybook/addon-actions';
|
|
import configureStore from '../../../store/store';
|
|
import testData from '../../../../.storybook/test-data';
|
|
import ComplianceFeaturePage from '.';
|
|
|
|
const customData = {
|
|
...testData,
|
|
metamask: {
|
|
...testData.metamask,
|
|
institutionalFeatures: {
|
|
complianceProjectId: '',
|
|
complianceClientId: '',
|
|
reportsInProgress: {},
|
|
},
|
|
},
|
|
};
|
|
|
|
const store = configureStore(customData);
|
|
|
|
export default {
|
|
title: 'Pages/Institutional/ComplianceFeaturePage',
|
|
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
|
|
component: ComplianceFeaturePage,
|
|
args: {
|
|
onClick: () => {
|
|
action('onClick');
|
|
},
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => <ComplianceFeaturePage {...args} />;
|
|
|
|
DefaultStory.storyName = 'ComplianceFeaturePage';
|