mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
4f64e3d6c3
Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net> Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
49 lines
1.1 KiB
JavaScript
49 lines
1.1 KiB
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import configureStore from '../../../store/store';
|
|
import testData from '../../../../.storybook/test-data';
|
|
import ComplianceDetails from '.';
|
|
|
|
const customData = {
|
|
...testData,
|
|
metamask: {
|
|
institutionalFeatures: {
|
|
complianceProjectId: '',
|
|
complianceClientId: '',
|
|
reportsInProgress: {},
|
|
historicalReports: {
|
|
'0xAddress': [
|
|
{
|
|
reportId: 'reportId',
|
|
address: '0xAddress',
|
|
risk: 'low',
|
|
creatTime: new Date(),
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
const store = configureStore(customData);
|
|
|
|
export default {
|
|
title: 'Components/Institutional/ComplianceDetails',
|
|
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
|
|
component: ComplianceDetails,
|
|
args: {
|
|
address: '0xAddress',
|
|
onClose: () => undefined,
|
|
onGenerate: () => undefined,
|
|
},
|
|
argTypes: {
|
|
onClick: {
|
|
action: 'onClick',
|
|
},
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => <ComplianceDetails {...args} />;
|
|
|
|
DefaultStory.storyName = 'ComplianceDetails';
|