homebrewery icon indicating copy to clipboard operation
homebrewery copied to clipboard

Deduplicate pagination functions in Editor and BrewRenderer

Open G-Ambatte opened this issue 2 years ago • 1 comments

As per this comment on PR #2162, with the merging of that PR, the pagination function in the BrewRenderer will be duplicated in the Editor.

It should be possible to use React.cloneElement to add props to the this.props.children (as identified in this comment) being handled in SplitPane.jsx to pass a unified pagination function as a prop to both child elements.

G-Ambatte avatar May 29 '22 04:05 G-Ambatte