mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
525d5ff54e
* Revert changes made to stable permission display (UI design) * Add test for new component * Update paddings for install flow * Fix missing icons on snap installation flow * Update storybook path * Add targetSubjectMetadata param --------- Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com> Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
38 lines
665 B
JavaScript
38 lines
665 B
JavaScript
import React from 'react';
|
|
|
|
import SnapPermissionsList from '.';
|
|
|
|
export default {
|
|
title: 'Components/App/flask/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',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
};
|