diff --git a/ui/components/ui/dialog/dialog.stories.js b/ui/components/ui/dialog/dialog.stories.js index 731cac2cc..7f070994a 100644 --- a/ui/components/ui/dialog/dialog.stories.js +++ b/ui/components/ui/dialog/dialog.stories.js @@ -1,4 +1,6 @@ import React from 'react'; +import { BannerAlert } from '../../component-library'; +import { Severity } from '../../../helpers/constants/design-system'; import README from './README.mdx'; import Dialog from '.'; @@ -19,9 +21,22 @@ export default { }, }; -export const DefaultDialog = (args) => { - return ; -}; +export const DefaultDialog = (args) => ( + <> + + + +); DefaultDialog.storyName = 'Default'; DefaultDialog.args = { diff --git a/ui/components/ui/dialog/index.js b/ui/components/ui/dialog/index.js index e9f10dc24..580c1ba55 100644 --- a/ui/components/ui/dialog/index.js +++ b/ui/components/ui/dialog/index.js @@ -2,6 +2,15 @@ import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; +/** + * @deprecated The `` component has been deprecated in favor of the new `` component from the component-library. + * Please update your code to use the new `` component instead, which can be found at ui/components/component-library/banner-alert/banner-alert.js. + * You can find documentation for the new `BannerAlert` component in the MetaMask Storybook: + * {@link https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-banneralert--docs} + * If you would like to help with the replacement of the old `Dialog` component, please submit a pull request against this GitHub issue: + * {@link https://github.com/MetaMask/metamask-extension/issues/20463} + */ + export default function Dialog(props) { const { children, type, className, onClick } = props; return (