2021-02-08 17:49:49 +01:00
|
|
|
import React from 'react';
|
2021-04-28 21:53:59 +02:00
|
|
|
import testData from '../../../../.storybook/test-data';
|
2021-02-08 17:49:49 +01:00
|
|
|
import SignatureRequest from './signature-request.component';
|
|
|
|
|
|
|
|
const primaryIdentity = Object.values(testData.metamask.identities)[0];
|
|
|
|
|
|
|
|
const containerStyle = {
|
|
|
|
width: '357px',
|
|
|
|
};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Signature Request',
|
2021-09-15 20:55:48 +02:00
|
|
|
id: __filename,
|
2021-02-08 17:49:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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>
|
|
|
|
);
|
|
|
|
};
|