1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Adding deprecation notice to javascript version of Icon (#18680)

* Adding deprecation notice to javascript version of Icon

* Fixing lint issue
This commit is contained in:
George Marshall 2023-04-20 11:09:55 -07:00 committed by GitHub
parent fa02f32e1b
commit c38cd21629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,14 @@ import {
import { ICON_SIZES, ICON_NAMES } from './icon.constants';
/**
* @deprecated This is the javascript version of `Icon` which has been deprecated in favour of the TypeScript version of the same name.
*
* To use the TS version update the imports and enums as follows:
*
* `import { Icon, IconSize, IconName } from '../../component-library'`;
*/
export const Icon = ({
name,
size = Size.MD,