1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

Adding background/default to BorderColor enum to prevent propType error and updating tests (#19571)

This commit is contained in:
George Marshall 2023-06-13 08:11:21 -07:00 committed by GitHub
parent 28137798b6
commit 6c3f31d382
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,7 @@ import {
AlignItems,
BackgroundColor,
BorderRadius,
DISPLAY,
Display,
FontWeight,
IconColor,
Size,
@ -31,7 +31,7 @@ export const AccountPicker = ({ address, name, onClick, disabled }) => {
borderRadius={BorderRadius.LG}
ellipsis
textProps={{
display: DISPLAY.FLEX,
display: Display.Flex,
gap: 2,
alignItems: AlignItems.center,
}}

View File

@ -10,6 +10,7 @@ const DEFAULT_PROPS = {
name: 'Account 1',
address: '0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc',
onClick: () => undefined,
disabled: false,
};
const render = (props = {}, state = {}) => {

View File

@ -106,6 +106,7 @@ export enum BorderColor {
lineaTestnet = 'lineatestnet',
transparent = 'transparent',
localhost = 'localhost',
backgroundDefault = 'background-default', // exception for border color when element is meant to look "cut out"
}
export enum TextColor {