From 55dbe28829836d7b5b9a7193edc376b87041990e Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 10 Mar 2025 17:29:58 +0200 Subject: [PATCH] add more legacy icons --- src/components/Toast/ToastIcon.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Toast/ToastIcon.tsx b/src/components/Toast/ToastIcon.tsx index ff1c5de15e..11b4b79e23 100644 --- a/src/components/Toast/ToastIcon.tsx +++ b/src/components/Toast/ToastIcon.tsx @@ -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'