add more legacy icons

This commit is contained in:
Samuel Newman
2025-03-10 17:29:58 +02:00
parent fb0de5873b
commit 55dbe28829
+9 -1
View File
@@ -14,7 +14,13 @@ export type IconName = 'check' | 'error' | 'warning' | 'info' | 'copied'
export type LegacyIconName = Extract<
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':
return 'copied'
case 'warning':
case 'exclamation-circle':
case 'circle-exclamation':
return 'warning'
case 'info':
return 'info'