mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
9f89d71c6f
* MMI-2657 adds the compliance settings screen * MMI-2657 adds stories file * review fixes * review fixes * lint fix * clean up * Update ui/components/institutional/compliance-settings/compliance-settings.stories.js Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net> * lint fix * snaps update * Button update --------- Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
35 lines
835 B
JavaScript
35 lines
835 B
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import configureStore from '../../../store/store';
|
|
import testData from '../../../../.storybook/test-data';
|
|
import ComplianceSettings from '.';
|
|
|
|
const customData = {
|
|
...testData,
|
|
metamask: {
|
|
...testData.metamask,
|
|
institutionalFeatures: {
|
|
complianceProjectId: '',
|
|
complianceClientId: '',
|
|
reportsInProgress: {},
|
|
},
|
|
},
|
|
};
|
|
|
|
const store = configureStore(customData);
|
|
|
|
export default {
|
|
title: 'Components/Institutional/ComplianceSettings',
|
|
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
|
|
component: ComplianceSettings,
|
|
argTypes: {
|
|
onClick: {
|
|
action: 'onClick',
|
|
},
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => <ComplianceSettings {...args} />;
|
|
|
|
DefaultStory.storyName = 'ComplianceSettings';
|