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
+1 -1
View File
@@ -71,7 +71,7 @@
"react-dom": "18.2.0",
"react-error-boundary": "^4.0.11",
"react-is": "18.2.0",
"react-resizable-panels": "^0.0.55",
"react-resizable-panels": "^0.0.61",
"react-router-dom": "^6.16.0",
"rxjs": "^7.8.1",
"ses": "^0.18.8",
@@ -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],