add more legacy icons
This commit is contained in:
@@ -14,7 +14,13 @@ export type IconName = 'check' | 'error' | 'warning' | 'info' | 'copied'
|
|||||||
|
|
||||||
export type LegacyIconName = Extract<
|
export type LegacyIconName = Extract<
|
||||||
FontAwesomeProps['icon'],
|
FontAwesomeProps['icon'],
|
||||||
'xmark' | 'check' | 'clipboard-check' | 'warning' | 'info'
|
| 'xmark'
|
||||||
|
| 'check'
|
||||||
|
| 'clipboard-check'
|
||||||
|
| 'warning'
|
||||||
|
| 'info'
|
||||||
|
| 'circle-exclamation'
|
||||||
|
| 'exclamation-circle'
|
||||||
>
|
>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -30,6 +36,8 @@ export const compat_convertLegacyIcon = (icon?: LegacyIconName): IconName => {
|
|||||||
case 'clipboard-check':
|
case 'clipboard-check':
|
||||||
return 'copied'
|
return 'copied'
|
||||||
case 'warning':
|
case 'warning':
|
||||||
|
case 'exclamation-circle':
|
||||||
|
case 'circle-exclamation':
|
||||||
return 'warning'
|
return 'warning'
|
||||||
case 'info':
|
case 'info':
|
||||||
return 'info'
|
return 'info'
|
||||||
|
|||||||
Reference in New Issue
Block a user