this.keepFocusOnInput()}
ref={node => (this.panelNode = node)}
>
ยป
,
panel
);
return panel;
}
render() {
return null;
}
}
const mapStateToProps = state => {
const location = getConditionalPanelLocation(state);
if (!location) {
throw new Error("Conditional panel location needed.");
}
const breakpoint: ?Breakpoint = getClosestBreakpoint(state, location);
return {
cx: getContext(state),
breakpoint,
location,
log: getLogPointStatus(state),
};
};
const {
setBreakpointOptions,
openConditionalPanel,
closeConditionalPanel,
} = actions;
const mapDispatchToProps = {
setBreakpointOptions,
openConditionalPanel,
closeConditionalPanel,
};
export default connect