2023-01-04 16:31:23 +01:00
|
|
|
import React from 'react';
|
|
|
|
import SignatureRequestData from './signature-request-data';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Components/App/SignatureRequest/SignatureRequestData',
|
2023-01-20 20:27:46 +01:00
|
|
|
|
2023-01-04 16:31:23 +01:00
|
|
|
component: SignatureRequestData,
|
|
|
|
argTypes: {
|
|
|
|
data: { control: 'object' },
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DefaultStory = (args) => {
|
|
|
|
return <SignatureRequestData {...args} />;
|
|
|
|
};
|
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
|
|
|
|
DefaultStory.args = {
|
|
|
|
data: JSON.parse(
|
|
|
|
JSON.stringify({
|
|
|
|
domain: {
|
|
|
|
name: 'happydapp.website',
|
|
|
|
},
|
|
|
|
message: {
|
|
|
|
string: 'haay wuurl',
|
|
|
|
number: 42,
|
|
|
|
},
|
|
|
|
primaryType: 'Mail',
|
|
|
|
types: {
|
|
|
|
EIP712Domain: [
|
|
|
|
{ name: 'name', type: 'string' },
|
|
|
|
{ name: 'version', type: 'string' },
|
|
|
|
{ name: 'chainId', type: 'uint256' },
|
|
|
|
{ name: 'verifyingContract', type: 'address' },
|
|
|
|
],
|
|
|
|
Group: [
|
|
|
|
{ name: 'name', type: 'string' },
|
|
|
|
{ name: 'members', type: 'Person[]' },
|
|
|
|
],
|
|
|
|
Mail: [
|
|
|
|
{ name: 'from', type: 'Person' },
|
|
|
|
{ name: 'to', type: 'Person[]' },
|
|
|
|
{ name: 'contents', type: 'string' },
|
|
|
|
],
|
|
|
|
Person: [
|
|
|
|
{ name: 'name', type: 'string' },
|
|
|
|
{ name: 'wallets', type: 'address[]' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
};
|