{getWeightedPermissions(t, permissions, targetSubjectMetadata).map(
- (permission, index) => {
- return (
-
- );
- },
+ getDescriptionNode,
)}
-
+
);
}
diff --git a/ui/components/app/permissions-connect-permission-list/permissions-connect-permission-list.stories.js b/ui/components/app/permissions-connect-permission-list/permissions-connect-permission-list.stories.js
index dd5cfb9ba..9ee800b03 100644
--- a/ui/components/app/permissions-connect-permission-list/permissions-connect-permission-list.stories.js
+++ b/ui/components/app/permissions-connect-permission-list/permissions-connect-permission-list.stories.js
@@ -20,18 +20,5 @@ DefaultStory.storyName = 'Default';
DefaultStory.args = {
permissions: {
eth_accounts: {},
- snap_dialog: {},
- snap_getBip32PublicKey: {
- caveats: [
- {
- value: [
- {
- path: ['m', `44'`, `0'`],
- curve: 'secp256k1',
- },
- ],
- },
- ],
- },
},
};
diff --git a/ui/helpers/utils/permission.js b/ui/helpers/utils/permission.js
index b931f0656..09b7e1600 100644
--- a/ui/helpers/utils/permission.js
+++ b/ui/helpers/utils/permission.js
@@ -15,13 +15,23 @@ import {
} from '../../../shared/constants/permissions';
import Tooltip from '../../components/ui/tooltip';
import {
+ AvatarIcon,
///: BEGIN:ONLY_INCLUDE_IN(flask)
Text,
+ Icon,
///: END:ONLY_INCLUDE_IN
} from '../../components/component-library';
-import { ICON_NAMES } from '../../components/component-library/icon/deprecated';
+import {
+ ICON_NAMES,
+ ICON_SIZES,
+} from '../../components/component-library/icon/deprecated';
///: BEGIN:ONLY_INCLUDE_IN(flask)
-import { Color, FONT_WEIGHT, TextVariant } from '../constants/design-system';
+import {
+ Color,
+ FONT_WEIGHT,
+ IconColor,
+ TextVariant,
+} from '../constants/design-system';
import {
coinTypeToProtocolName,
getSnapDerivationPathName,
@@ -31,10 +41,33 @@ import {
const UNKNOWN_PERMISSION = Symbol('unknown');
+///: BEGIN:ONLY_INCLUDE_IN(flask)
+const RIGHT_INFO_ICON = (
+