mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
15 lines
434 B
JavaScript
15 lines
434 B
JavaScript
import PropTypes from 'prop-types';
|
|
import { getTarget, targetPropType } from './utils';
|
|
|
|
var PopperTargetHelper = function PopperTargetHelper(props, context) {
|
|
context.popperManager.setTargetNode(getTarget(props.target));
|
|
return null;
|
|
};
|
|
|
|
PopperTargetHelper.contextTypes = {
|
|
popperManager: PropTypes.object.isRequired
|
|
};
|
|
PopperTargetHelper.propTypes = {
|
|
target: targetPropType.isRequired
|
|
};
|
|
export default PopperTargetHelper; |