mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
f472c2615a
* 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
32 lines
816 B
JavaScript
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')}
|
|
/>
|
|
);
|
|
};
|