mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 00:28:06 +01:00
8603a4b067
* Add permission cell component Add storybook and handling for revoked permission colors * Fix things after conflict resolve after rebase * Add code refactoring and minor UI changes * Add permission cell component to snap-update flow * Update storybook * Add unit tests for permission cell * Update component padding * Fix spacing between permission cells * Fix main icon color for approved permissions * Update width value with constant
23 lines
539 B
JavaScript
23 lines
539 B
JavaScript
import React from 'react';
|
|
import PermissionCell from '.';
|
|
|
|
export default {
|
|
title: 'Components/App/PermissionCell',
|
|
|
|
component: PermissionCell,
|
|
};
|
|
|
|
export const DefaultStory = (args) => <PermissionCell {...args} />;
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
DefaultStory.args = {
|
|
title: 'Access the Ethereum provider.',
|
|
description:
|
|
'Allow the snap to communicate with MetaMask direct…blockchain and suggest messages and transactions.',
|
|
weight: 1,
|
|
avatarIcon: 'ethereum',
|
|
dateApproved: 1680185432326,
|
|
revoked: false,
|
|
};
|