1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 14:15:06 +01:00
metamask-extension/ui/components/app/signature-request/signature-request.stories.js
2021-04-28 14:53:59 -05:00

38 lines
867 B
JavaScript

import React from 'react';
import testData from '../../../../.storybook/test-data';
import SignatureRequest from './signature-request.component';
const primaryIdentity = Object.values(testData.metamask.identities)[0];
const containerStyle = {
width: '357px',
};
export default {
title: 'Signature Request',
};
export const FirstLook = () => {
return (
<div style={containerStyle}>
<SignatureRequest
txData={{
msgParams: {
data: JSON.stringify({
domain: {
name: 'happydapp.website',
},
message: {
string: 'haay wuurl',
number: 42,
},
}),
origin: 'https://happydapp.website/governance?futarchy=true',
},
}}
fromAccount={primaryIdentity}
/>
</div>
);
};