1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/pages/create-account/institutional/connect-custody/account-list.stories.js
Albert Olivé c3cb464229
[MMI] Added custody-labels and account-list components (#18197)
* Added custody-labels and account-list components

* Modified link

* Renamed custody labels and improved code

* Added snapshot

* Fixed snapshot

* Finished connect-custody account-list

* Fixing css prettier

* Fixed comments of the PR

* Fixed code

---------

Co-authored-by: António Regadas <apregadas@gmail.com>
2023-04-17 17:06:41 +02:00

35 lines
777 B
JavaScript

import React from 'react';
import CustodyAccountList from '.';
const testAccounts = [
{
address: '0x1234567890123456789012345678901234567890',
name: 'Test Account 1',
chainId: 1,
},
{
address: '0x0987654321098765432109876543210987654321',
name: 'Test Account 2',
chainId: 1,
},
];
export default {
title: 'Pages/Institutional/CustodyAccountList',
component: CustodyAccountList,
args: {
custody: 'Test',
accounts: testAccounts,
onAccountChange: () => undefined,
selectedAccounts: {},
onAddAccounts: () => undefined,
onCancel: () => undefined,
provider: 'Test',
rawList: false,
},
};
export const DefaultStory = (args) => <CustodyAccountList {...args} />;
DefaultStory.storyName = 'CustodyAccountList';