0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 18:32:40 +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} width={this.state.currentDividerPos}
> >
{React.cloneElement(this.props.children[0], { {React.cloneElement(this.props.children[0], {
moveBrew : this.state.moveBrew, ...(this.state.showMoveArrows && {
moveSource : this.state.moveSource, moveBrew: this.state.moveBrew,
setMoveArrows : this.setMoveArrows moveSource: this.state.moveSource,
setMoveArrows: this.setMoveArrows,
}),
})} })}
</Pane> </Pane>
{this.renderDivider()} {this.renderDivider()}