1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/ui/components/institutional/compliance-details/compliance-details.stories.js
Albert Olivé 4f64e3d6c3
[MMI] Add-compliance-details component (#18575)
Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
2023-04-21 13:28:26 -05:00

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';