1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 03:12:42 +02:00

[FLASK] Fix Snaps UI divider (#19919)

This commit is contained in:
Frederik Bolding 2023-07-07 15:10:58 +02:00 committed by GitHub
parent 484dae32e8
commit 4918aa4c34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -44,7 +44,6 @@ export const safeComponentList = {
SnapDelineator,
Copyable,
Spinner,
hr: 'hr',
SnapUIMarkdown,
///: END:ONLY_INCLUDE_IN
};

View File

@ -9,6 +9,7 @@
&__divider {
width: 100%;
height: 1px;
}
&__panel {

View File

@ -10,6 +10,7 @@ import {
OverflowWrap,
FontWeight,
TextVariant,
BorderColor,
} from '../../../../helpers/constants/design-system';
import { SnapDelineator } from '../snap-delineator';
import { useI18nContext } from '../../../../hooks/useI18nContext';
@ -53,9 +54,12 @@ export const UI_MAPPING = {
},
}),
divider: () => ({
element: 'hr',
element: 'Box',
props: {
className: 'snap-ui-renderer__divider',
backgroundColor: BorderColor.borderDefault,
marginTop: 2,
marginBottom: 2,
},
}),
copyable: (props) => ({