mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
38 lines
867 B
JavaScript
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>
|
|
);
|
|
};
|