0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

fix splitpane errors

This commit is contained in:
Víctor Losada Hernández
2024-09-04 09:37:35 +02:00
parent 1225e5cb6a
commit 29d4003bd2

View File

@@ -142,9 +142,11 @@ const SplitPane = createClass({
width={this.state.currentDividerPos}
>
{React.cloneElement(this.props.children[0], {
moveBrew : this.state.moveBrew,
moveSource : this.state.moveSource,
setMoveArrows : this.setMoveArrows
...(this.state.showMoveArrows && {
moveBrew: this.state.moveBrew,
moveSource: this.state.moveSource,
setMoveArrows: this.setMoveArrows,
}),
})}
</Pane>
{this.renderDivider()}