chore(core): update react-resizable-panels (#5041)

`react-resizable-panels` will throw some errors sometime when showing history modal dialog.
I haven't checked the root cause, but upgrade it to the latest will get rid of the error.
This commit is contained in:
Peng Xiao
2023-11-23 09:20:12 +00:00
parent 25eda22af6
commit ae8329c590
3 changed files with 8 additions and 8 deletions

View File

@@ -289,7 +289,7 @@ const LayoutPanel = memo(function LayoutPanel(
className={depth === 0 ? editorContainer : undefined}
>
<Panel
defaultSize={node.splitPercentage}
defaultSizePercentage={node.splitPercentage}
style={{
maxWidth: node.maxWidth?.[0],
}}
@@ -304,7 +304,7 @@ const LayoutPanel = memo(function LayoutPanel(
</Panel>
<PanelResizeHandle />
<Panel
defaultSize={100 - node.splitPercentage}
defaultSizePercentage={100 - node.splitPercentage}
style={{
overflow: 'scroll',
maxWidth: node.maxWidth?.[1],