2023-03-29 15:49:45 +02:00
|
|
|
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,
|
2023-03-30 12:40:37 +02:00
|
|
|
argTypes: {
|
|
|
|
onClick: {
|
|
|
|
action: 'onClick',
|
2023-03-29 15:49:45 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DefaultStory = (args) => <ComplianceSettings {...args} />;
|
|
|
|
|
|
|
|
DefaultStory.storyName = 'ComplianceSettings';
|