diff --git a/ui/components/ui/icon-border/icon-border.js b/ui/components/ui/icon-border/icon-border.js index b564f4acb..8fef1b6a9 100644 --- a/ui/components/ui/icon-border/icon-border.js +++ b/ui/components/ui/icon-border/icon-border.js @@ -2,6 +2,14 @@ import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; +/** + * @deprecated The `` component has been deprecated in favor of the `` component from the component-library. + * Please update your code to use the new `` component instead, which can be found at ./ui/components/component-library/avatar-base/avatar-base.js. + * You can find documentation for the new AvatarBase component in the MetaMask Storybook: + * {@link https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-avatarbase--docs} + * If you would like to help with the replacement of the old IconBorder component, please submit a pull request + */ + export default function IconBorder({ children, size, className }) { const borderStyle = { height: `${size}px`, width: `${size}px` }; return ( diff --git a/ui/components/ui/icon-border/icon-border.stories.js b/ui/components/ui/icon-border/icon-border.stories.js new file mode 100644 index 000000000..daae7e092 --- /dev/null +++ b/ui/components/ui/icon-border/icon-border.stories.js @@ -0,0 +1,40 @@ +import React from 'react'; +import { Severity } from '../../../helpers/constants/design-system'; +import { BannerAlert } from '../../component-library'; + +import IconBorder from './icon-border'; + +export default { + title: 'Components/UI/IconBorder', + component: IconBorder, + argTypes: { + className: { + control: 'text', + }, + children: { + control: 'text', + }, + size: { + control: 'number', + }, + }, + args: { + className: '', + children: 'D', + size: 32, + }, +}; + +export const DefaultStory = (args) => ( + <> + + + +); + +DefaultStory.storyName = 'Default';