Skip to content

Commit

Permalink
temporarily add back in any props for ErrorAlert test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocio De Santiago authored and Rocio De Santiago committed Aug 28, 2024
1 parent 67c016b commit e3c27ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/ui-src/src/components/accordions/AccordionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<AccordionItemRoot sx={sx.root}>
<AccordionItemRoot sx={sx.root} {...props}>
{({ isExpanded }) => (
<>
<AccordionButton
Expand All @@ -35,6 +35,7 @@ export const AccordionItem = ({ label, children }: Props) => {

interface Props {
children?: ReactChild | ReactChild[];
[key: string]: any;
label?: string;
}

Expand Down
3 changes: 3 additions & 0 deletions services/ui-src/src/components/alerts/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ export const Alert = ({
link,
showIcon = true,
icon,
...props
}: Props) => {
return (
<AlertRoot
status={status}
variant="left-accent"
sx={sx.root}
className={status}
{...props}
>
<Flex>
{showIcon && (
Expand Down Expand Up @@ -58,6 +60,7 @@ interface Props {
link?: string;
showIcon?: boolean;
icon?: string;
[key: string]: any;
}

const sx = {
Expand Down

0 comments on commit e3c27ba

Please sign in to comment.