Skip to content

Commit 4c1b809

Browse files
committed
fix: theme read only issue with panel
Signed-off-by: Amit Amrutiya <amitamrutiya2210@gmail.com>
1 parent 15a9e78 commit 4c1b809

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/custom/Panel/Panel.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const Panel_: React.FC<PanelProps> = ({
5656
if (!isOpen) return null;
5757
return (
5858
<Draggable handle=".drag-handle">
59-
<PanelContainer theme={theme} intitialPosition={intitialPosition} sx={sx}>
59+
<PanelContainer intitialPosition={intitialPosition} sx={sx}>
6060
<Resizable
6161
defaultSize={{
6262
width: defaultSize?.width || '18rem',
@@ -106,9 +106,7 @@ const Panel_: React.FC<PanelProps> = ({
106106
</HeaderContainer>
107107
</DrawerHeader>
108108
</div>
109-
<PanelBody className="panel-body" theme={theme}>
110-
{children}
111-
</PanelBody>
109+
<PanelBody className="panel-body">{children}</PanelBody>
112110
</ErrorBoundary>
113111
</ResizableContent>
114112
</Resizable>

0 commit comments

Comments
 (0)