mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 21:57:06 +01:00
c716592fd1
* Clean up some code fencing around snaps * Fix code fencing * Fix more fencing issues
38 lines
665 B
JavaScript
38 lines
665 B
JavaScript
import React from 'react';
|
|
|
|
import SnapPermissionsList from '.';
|
|
|
|
export default {
|
|
title: 'Components/App/Snaps/SnapPermissionsList',
|
|
|
|
component: SnapPermissionsList,
|
|
argTypes: {
|
|
permissions: {
|
|
control: 'object',
|
|
},
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => <SnapPermissionsList {...args} />;
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
DefaultStory.args = {
|
|
permissions: {
|
|
eth_accounts: {},
|
|
snap_dialog: {},
|
|
snap_getBip32PublicKey: {
|
|
caveats: [
|
|
{
|
|
value: [
|
|
{
|
|
path: ['m', `44'`, `0'`],
|
|
curve: 'secp256k1',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
};
|