1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 04:37:13 +01:00
metamask-extension/ui/pages/connected-accounts/connected-accounts.stories.js
kumavis f472c2615a
CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095)
* ci/announce/highlight - add bot announcement section for "highlights" showing off important diffs + storybook highlights

* ci/announce/highlight - fix announcement message

* Update index.js

* xxx tmp xxx

* ci/announce/highlight - fix dirty file calculation

* ci/announce/highlight - try/catch wrap highlight generation for build stability

* ui - put fox emojis in the mascot component

* ci/announce/highlight - start storybook permalinks

* ci/announce/highlight - fix storybook permalink util

* ci/announce/highlight - fix storybook permalink util

* ci/announce/highlight - small styling fix

* storybook - use any easily predictable story id

* ci/announce/highlight - revert sample commit

* ci/announce/highlight - minimal documentation
2021-09-15 08:55:48 -10:00

32 lines
816 B
JavaScript

import React from 'react';
import { action } from '@storybook/addon-actions';
import ConnectedAccounts from './connected-accounts.component';
export default {
title: 'Connected Accounts',
id: __filename,
};
const account = [
{
name: 'Account 1',
address: '0x983211ce699ea5ab57cc528086154b6db1ad8e55',
},
];
const identities = {
name: 'Account 1',
address: '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4',
};
export const ConnectedAccountComponent = () => {
return (
<ConnectedAccounts
connectedAccounts={account}
activeTabOrigin="https://metamask.github.io"
accountToConnect={identities}
connectAccount={action('Account Connected')}
removePermittedAccount={action('Account Removed')}
setSelectedAddress={action('Selected Address Changed')}
/>
);
};