mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
234fb4ac5d
* adds component with locales and test * adds feedback from review * adds storeis file * update snapshots * prettier * clean up stories file * relocation * review fixes * Update ui/pages/institutional/confirm-add-custodian-token/confirm-add-custodian-token.js Co-authored-by: George Marshall <george.marshall@consensys.net> * Update ui/pages/institutional/confirm-add-custodian-token/confirm-add-custodian-token.js Co-authored-by: George Marshall <george.marshall@consensys.net> * Update ui/pages/institutional/confirm-add-custodian-token/confirm-add-custodian-token.js Co-authored-by: George Marshall <george.marshall@consensys.net> * Button path remove * Update ui/pages/institutional/confirm-add-custodian-token/confirm-add-custodian-token.js Co-authored-by: George Marshall <george.marshall@consensys.net> * pulled * stories file update location --------- Co-authored-by: George Marshall <george.marshall@consensys.net>
44 lines
1.1 KiB
JavaScript
44 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 ConfirmAddCustodianToken from '.';
|
|
|
|
const customData = {
|
|
...testData,
|
|
metamask: {
|
|
...testData.metamask,
|
|
institutionalFeatures: {
|
|
complianceProjectId: '',
|
|
connectRequests: [
|
|
{
|
|
labels: [
|
|
{
|
|
key: 'service',
|
|
value: 'test',
|
|
},
|
|
],
|
|
origin: 'origin',
|
|
token: 'awesomeTestToken',
|
|
feature: 'custodian',
|
|
service: 'Saturn',
|
|
apiUrl: 'https://www.apiurl.net/v1',
|
|
chainId: 1,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
};
|
|
|
|
const store = configureStore(customData);
|
|
|
|
export default {
|
|
title: 'Pages/Institutional/ConfirmAddCustodianToken',
|
|
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
|
|
component: ConfirmAddCustodianToken,
|
|
};
|
|
|
|
export const DefaultStory = () => <ConfirmAddCustodianToken />;
|
|
|
|
DefaultStory.storyName = 'ConfirmAddCustodianToken';
|