From a889681e9991f1279f0f27cc07f391b14760fbf4 Mon Sep 17 00:00:00 2001 From: Dhruv <79097544+dhruvv173@users.noreply.github.com> Date: Wed, 30 Aug 2023 02:56:44 +0530 Subject: [PATCH] deprecating SiteOrigin in favour TagUrl (#20620) Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com> --- ui/components/ui/site-origin/site-origin.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/components/ui/site-origin/site-origin.js b/ui/components/ui/site-origin/site-origin.js index a34a20b99..08b217b72 100644 --- a/ui/components/ui/site-origin/site-origin.js +++ b/ui/components/ui/site-origin/site-origin.js @@ -5,6 +5,15 @@ import Chip from '../chip'; import IconWithFallback from '../icon-with-fallback'; import { BorderColor } from '../../../helpers/constants/design-system'; +/** + * @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/tag-url/tag-url.js. + * You can find documentation for the new `TagUrl` component in the MetaMask Storybook: + * {@link https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-tagurl--docs} + * If you would like to help with the replacement of the old `SiteOrigin` component, please submit a pull request against this GitHub issue: + * {@link https://github.com/MetaMask/metamask-extension/issues/20489} + */ + export default function SiteOrigin({ siteOrigin, iconSrc,