1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-04 23:14:56 +01:00
metamask-extension/ui/components/app/signature-request/signature-request.stories.js
2021-06-06 12:45:27 -02:30

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>
);
};