1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

Part of #18714: Replacing deprecated constants in Avatar-Favicon folder (#19332)

* sda

* sad

* replacing depricated constants

---------

Co-authored-by: Garrett Bear <gwhisten@gmail.com>
This commit is contained in:
rohit kerkar 2023-06-01 22:39:08 +05:30 committed by GitHub
parent d5dd4fa881
commit 2a227c4646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ import { IconName, Icon } from '../icon';
import {
BorderColor,
Size,
DISPLAY,
Display,
AlignItems,
JustifyContent,
IconColor,
@ -33,7 +33,7 @@ export const AvatarFavicon = React.forwardRef(
<AvatarBase
ref={ref}
size={size}
display={DISPLAY.FLEX}
display={Display.Flex}
alignItems={AlignItems.center}
justifyContent={JustifyContent.center}
className={classnames('mm-avatar-favicon', className)}

View File

@ -1,6 +1,6 @@
import React from 'react';
import {
DISPLAY,
Display,
AlignItems,
BorderColor,
Size,
@ -51,7 +51,7 @@ export const DefaultStory = Template.bind({});
DefaultStory.storyName = 'Default';
export const SizeStory = (args) => (
<Box display={DISPLAY.FLEX} alignItems={AlignItems.baseline} gap={1}>
<Box display={Display.Flex} alignItems={AlignItems.baseline} gap={1}>
<AvatarFavicon {...args} size={Size.XS} />
<AvatarFavicon {...args} size={Size.SM} />
<AvatarFavicon {...args} size={Size.MD} />
@ -62,7 +62,7 @@ export const SizeStory = (args) => (
SizeStory.storyName = 'Size';
export const Src = (args) => (
<Box display={DISPLAY.FLEX} alignItems={AlignItems.flexStart} gap={1}>
<Box display={Display.Flex} alignItems={AlignItems.flexStart} gap={1}>
<AvatarFavicon {...args} src="https://uniswap.org/favicon.ico" />
<AvatarFavicon
{...args}