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:
parent
fa02f32e1b
commit
c38cd21629
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user