Skip to content

Commit

Permalink
Part of #18714: Replacing deprecated constants in Avatar-Favicon fo…
Browse files Browse the repository at this point in the history
…lder (#19332)

* sda

* sad

* replacing depricated constants

---------

Co-authored-by: Garrett Bear <[email protected]>
  • Loading branch information
rohiiittttt and garrettbear authored Jun 1, 2023
1 parent d5dd4fa commit 2a227c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IconName, Icon } from '../icon';
import {
BorderColor,
Size,
DISPLAY,
Display,
AlignItems,
JustifyContent,
IconColor,
Expand All @@ -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)}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {
DISPLAY,
Display,
AlignItems,
BorderColor,
Size,
Expand Down Expand Up @@ -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} />
Expand All @@ -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}
Expand Down

0 comments on commit 2a227c4

Please sign in to comment.