From e3c27ba8c2de4c01d870e2b12ac4c81c138e8bde Mon Sep 17 00:00:00 2001 From: Rocio De Santiago Date: Wed, 28 Aug 2024 12:18:52 -0500 Subject: [PATCH] temporarily add back in any props for ErrorAlert test failing --- services/ui-src/src/components/accordions/AccordionItem.tsx | 5 +++-- services/ui-src/src/components/alerts/Alert.tsx | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/services/ui-src/src/components/accordions/AccordionItem.tsx b/services/ui-src/src/components/accordions/AccordionItem.tsx index 51832c59..2b6dd013 100644 --- a/services/ui-src/src/components/accordions/AccordionItem.tsx +++ b/services/ui-src/src/components/accordions/AccordionItem.tsx @@ -9,9 +9,9 @@ import { import plusIcon from "assets/icons/icon_plus.png"; import minusIcon from "assets/icons/icon_minus.png"; -export const AccordionItem = ({ label, children }: Props) => { +export const AccordionItem = ({ label, children, ...props }: Props) => { return ( - + {({ isExpanded }) => ( <> { interface Props { children?: ReactChild | ReactChild[]; + [key: string]: any; label?: string; } diff --git a/services/ui-src/src/components/alerts/Alert.tsx b/services/ui-src/src/components/alerts/Alert.tsx index 61296bd6..9dce420e 100644 --- a/services/ui-src/src/components/alerts/Alert.tsx +++ b/services/ui-src/src/components/alerts/Alert.tsx @@ -19,6 +19,7 @@ export const Alert = ({ link, showIcon = true, icon, + ...props }: Props) => { return ( {showIcon && ( @@ -58,6 +60,7 @@ interface Props { link?: string; showIcon?: boolean; icon?: string; + [key: string]: any; } const sx = {