1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui/pages/institutional/custody/custody.stories.js
2023-04-27 12:27:31 +02:00

53 lines
1.3 KiB
JavaScript

import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../../../store/store';
import testData from '../../../../.storybook/test-data';
import CustodyPage from '.';
const customData = {
...testData,
metamask: {
...testData.metamask,
mmiConfiguration: {
portfolio: {
enabled: true,
url: 'https://portfolio.io',
},
custodians: [
{
type: 'Saturn',
name: 'saturn',
apiUrl: 'https://saturn-custody.dev.metamask-institutional.io',
iconUrl:
'https://saturn-custody-ui.dev.metamask-institutional.io/saturn.svg',
displayName: 'Saturn Custody',
production: true,
refreshTokenUrl: null,
isNoteToTraderSupported: false,
version: 1,
},
],
},
},
};
const store = configureStore(customData);
export default {
title: 'Pages/Institutional/CustodyPage',
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
component: CustodyPage,
argTypes: {
onClick: {
action: 'onClick',
},
onChange: {
action: 'onChange',
},
},
};
export const DefaultStory = (args) => <CustodyPage {...args} />;
DefaultStory.storyName = 'CustodyPage';