Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-mng committed Dec 16, 2024
1 parent fc009ac commit 3e6d2b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/web/components/panel/infopanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Heading = styled.div`
padding: 10px 15px;
min-height: 35px;
background-color: ${props =>
props.isWarning ? Theme.mediumLightRed : Theme.lightBlue};
props.$isWarning ? Theme.mediumLightRed : Theme.lightBlue};
border-color: ${Theme.mediumBlue};
`;

Expand Down Expand Up @@ -62,14 +62,14 @@ const InfoPanel = ({
}) => {
return (
<Panel
isWarning={isWarning}
noMargin={noMargin}
$isWarning={isWarning}
$noMargin={noMargin}
align={['start', 'stretch']}
flex="column"
{...props}
>
{heading && (
<Heading data-testid="infopanel-heading" isWarning={isWarning}>
<Heading data-testid="infopanel-heading" $isWarning={isWarning}>
{heading}
{isDefined(onCloseClick) && (
<Button data-testid="panel-close-button" onClick={onCloseClick}>
Expand Down

0 comments on commit 3e6d2b2

Please sign in to comment.