Skip to content

Commit

Permalink
fixing warning about multiple children
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas committed Feb 2, 2024
1 parent db44b14 commit a693bb0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ export default function ResizablePanel({
}
{...props}
>
{heading ? <div className="panel-heading">{heading}</div> : null}
<div className="panel-body">{children}</div>
<>
{heading ? <div className="panel-heading">{heading}</div> : null}
<div className="panel-body">{children}</div>
</>
</ResizableBox>
);
}

0 comments on commit a693bb0

Please sign in to comment.