diff --git a/ui/pages/keyring-snaps/snap-account-detail-page/__snapshots__/snap-account-detail-page.test.tsx.snap b/ui/pages/keyring-snaps/snap-account-detail-page/__snapshots__/snap-account-detail-page.test.tsx.snap
index 13f172499..aef5def3d 100644
--- a/ui/pages/keyring-snaps/snap-account-detail-page/__snapshots__/snap-account-detail-page.test.tsx.snap
+++ b/ui/pages/keyring-snaps/snap-account-detail-page/__snapshots__/snap-account-detail-page.test.tsx.snap
@@ -61,47 +61,31 @@ exports[`SnapAccountDetails should take a snapshot 1`] = `
/>
Version
@@ -215,7 +202,7 @@ exports[`SnapAccountDetails should take a snapshot 1`] = `
class="mm-box mm-box--margin-bottom-4 mm-box--flex-direction-column"
>
Updated
diff --git a/ui/pages/keyring-snaps/snap-account-detail-page/detail.tsx b/ui/pages/keyring-snaps/snap-account-detail-page/detail.tsx
index 7e47b59ad..1fccfa161 100644
--- a/ui/pages/keyring-snaps/snap-account-detail-page/detail.tsx
+++ b/ui/pages/keyring-snaps/snap-account-detail-page/detail.tsx
@@ -2,6 +2,7 @@ import React from 'react';
import { Box, Text } from '../../../components/component-library';
import {
FlexDirection,
+ OverflowWrap,
TextVariant,
} from '../../../helpers/constants/design-system';
@@ -11,7 +12,11 @@ const Detail = ({
}: React.PropsWithChildren<{ title: string }>) => {
return (
-
+
{title}
{children}
diff --git a/ui/pages/keyring-snaps/snap-account-detail-page/header.tsx b/ui/pages/keyring-snaps/snap-account-detail-page/header.tsx
index 056c8d754..9a53cbd67 100644
--- a/ui/pages/keyring-snaps/snap-account-detail-page/header.tsx
+++ b/ui/pages/keyring-snaps/snap-account-detail-page/header.tsx
@@ -13,7 +13,6 @@ import {
} from '../../../components/component-library';
import {
AlignItems,
- BackgroundColor,
BorderColor,
Display,
FlexDirection,
@@ -22,8 +21,9 @@ import {
TextVariant,
} from '../../../helpers/constants/design-system';
import { useI18nContext } from '../../../hooks/useI18nContext';
-import { SnapCardProps } from '../new-snap-account-page/new-snap-account-page';
import { METAMASK_DEVELOPER } from '../constants';
+import { SnapCardProps } from '../new-snap-account-page/new-snap-account-page';
+import SnapDetailTag from './snap-detail-tag';
export const SnapDetailHeader = ({
updateAvailable,
@@ -147,57 +147,14 @@ export const SnapDetailHeader = ({
{developer.toLowerCase() === METAMASK_DEVELOPER && (
-
- {' '}
-
- {t('snapCreatedByMetaMask')}
-
-
- }
- labelProps={{
- color: TextColor.infoDefault,
- }}
- className=""
- marginRight={1}
- />
+
+ {t('snapCreatedByMetaMask')}
+
)}
{auditUrls.length > 0 && (
-
- {' '}
-
- {t('snapIsAudited')}
-
-
- }
- labelProps={{
- color: TextColor.infoDefault,
- }}
- />
+
+ {t('snapIsAudited')}
+
)}
diff --git a/ui/pages/keyring-snaps/snap-account-detail-page/snap-account-detail-page.tsx b/ui/pages/keyring-snaps/snap-account-detail-page/snap-account-detail-page.tsx
index e7f3e8f9f..91404eeaa 100644
--- a/ui/pages/keyring-snaps/snap-account-detail-page/snap-account-detail-page.tsx
+++ b/ui/pages/keyring-snaps/snap-account-detail-page/snap-account-detail-page.tsx
@@ -13,6 +13,7 @@ import {
BlockSize,
Display,
FlexDirection,
+ OverflowWrap,
TextColor,
TextVariant,
} from '../../../helpers/constants/design-system';
@@ -104,17 +105,35 @@ export default function SnapAccountDetailPage() {
})}
- {currentSnap.developer}
+
+ {currentSnap.developer}
+
+
+
+
- {currentSnap.website}
{currentSnap.auditUrls.map((auditLink, index) => {
return (
-
-
-
+
);
})}
diff --git a/ui/pages/keyring-snaps/snap-account-detail-page/snap-detail-tag.tsx b/ui/pages/keyring-snaps/snap-account-detail-page/snap-detail-tag.tsx
new file mode 100644
index 000000000..5ed3ef186
--- /dev/null
+++ b/ui/pages/keyring-snaps/snap-account-detail-page/snap-detail-tag.tsx
@@ -0,0 +1,49 @@
+import React, { ReactChildren } from 'react';
+import {
+ Box,
+ Icon,
+ IconName,
+ Text,
+} from '../../../components/component-library';
+import {
+ AlignItems,
+ BackgroundColor,
+ BorderColor,
+ BorderRadius,
+ Display,
+ IconColor,
+ JustifyContent,
+ TextColor,
+ TextVariant,
+} from '../../../helpers/constants/design-system';
+
+const SnapDetailTag = ({
+ icon,
+ children,
+}: {
+ icon: IconName;
+ children: ReactChildren;
+}) => {
+ return (
+
+ {' '}
+
+ {children}
+
+
+ );
+};
+
+export default React.memo(SnapDetailTag);