mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 21:00:13 +01:00
5802805597
Co-authored-by: Gregório Granado Magalhães <greg.magalhaes@gmail.com> Co-authored-by: George Marshall <georgewrmarshall@gmail.com> Co-authored-by: georgewrmarshall <george.marshall@consensys.net> Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com> Co-authored-by: brad-decker <bhdecker84@gmail.com>
37 lines
930 B
JavaScript
37 lines
930 B
JavaScript
import React from 'react';
|
|
import testData from '../../../../../.storybook/test-data';
|
|
import SignatureRequestSIWEHeader from '.';
|
|
|
|
const primaryIdentity = Object.values(testData.metamask.identities)[0];
|
|
const subjectMetadata = {
|
|
iconUrl: '/images/logo/metamask-fox.svg',
|
|
name: 'MetaMask',
|
|
origin: 'http://localhost:8080',
|
|
};
|
|
|
|
export default {
|
|
title: 'Components/App/SignatureRequestSIWE/SignatureRequestSIWEHeader',
|
|
id: __filename,
|
|
argTypes: {
|
|
fromAccount: {
|
|
table: {
|
|
address: { control: 'text' },
|
|
balance: { control: 'text' },
|
|
name: { control: 'text' },
|
|
},
|
|
},
|
|
domain: { control: 'text' },
|
|
subjectMetadata: { control: 'object' },
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => <SignatureRequestSIWEHeader {...args} />;
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
DefaultStory.args = {
|
|
fromAccount: primaryIdentity,
|
|
domain: window.location.host,
|
|
subjectMetadata,
|
|
};
|